What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-09 19:30:20
how to delete repeated element in stack c++
int* stack = (int*)malloc(10 * sizeof(int)); int size = 10; int sp = -1; bool isempty() { return (sp == -1); } bool isfull() { return (sp == size - 1); } void push(int x) { if (isfull()) { printf("Full!"); } else {... Add solution -
Python 2021-11-08 16:38:07
convert c++ code to python online
// Program to print path from root node to destination node // for N*N -1 puzzle algorithm using Branch and Bound // The solution assumes that instance of puzzle is solvable #include <bits/stdc++.h> using namespace std; #define N 3 // state space t... Add solution -
C 2021-11-07 01:59:12
Rotation of array in C++
// C program to rotate an array cyclically #include <stdio.h> void rightRotateByOne(int arr[], int n) //function for cyclically rotating an array once { int x = arr[n-1], i; for (i = n-1; i > 0; i--) arr[i] = arr[i-1]; arr[0] = x... Add solution -
Other 2021-10-27 01:46:11
prime number up to n
#include<stdio.h> void main() { int i,j,n; printf("Enter the number till which you want prime numbers\n"); scanf("%d",&n)... Add solution
Best helpers
Andrew Lowe
+5
Thruston
+5
Tralston
+5
Silver Rain
+5
Mahnaz
+5
JohnDoe
+5
Akiman Barwa
+5
Jeff Ava
+5