Skip to content

Instantly share code, notes, and snippets.

Avatar

Ray liyunrui

  • Singapore
View GitHub Profile
@mycodeschool
mycodeschool / BST_InorderSuccessor_CPP.cpp
Last active Jul 25, 2021
C++ program to find Inorder successor in a BST
View BST_InorderSuccessor_CPP.cpp
/* C++ program to find Inorder successor in a BST */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find some data in the tree