What do you want to save?
Add Code snippet
New code examples
-
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-10-25 20:14:06
binary search tree in cpp using class
/* Program to implement Binary Search Tree in c++ using classes */ #include<iostream> #include<stdlib.h> #include<cstdlib> using namespace std; struct Node { int data; Node* left; Node* right; }; class BinaryTree { pri... Add solution -
Other 2021-09-30 06:18:05
binary search tree
// Binary Search Tree operations in C #include <stdio.h> #include <stdlib.h> struct node { int key; struct node *left, *right; }; // Create a node struct node *newNode(int item) { struct node *temp = (struct node *)malloc(sizeof(struc... Add solution -
C++ 2021-09-23 18:55:04
deletion in a binary search tree
//insertion;deletion;searching;dispaly;menu driven program ;(BINARY SEARCH TREE) #include <iostream> using namespace std; class node { public: int data; node*right; node*left; }; node*getnewnode(int val) { node *temp=new node; t... Add solution -
Other 2021-09-23 15:43:08
bst traversal with recursion c
# include <stdio.h> # include <conio.h> # include <stdlib.h> typedef struct BST { int data; struct BST *lchild, *rchild; } node; void insert(node *, node *); void inorder(node *); void preorder(nod... Add solution -
C++ 2021-08-27 19:49:01
bst traversal code in data structure with c++
#include<iostream> using namespace std; struct node { int data; struct node *left; struct node *right; }; struct node *createNode(int val) { struct node *temp = (struct node *)malloc(sizeof(struct ... Add solution