This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstdlib> | |
#include<queue> | |
#include<map> | |
using namespace std; | |
struct node{ | |
int data; | |
struct node *left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<map> | |
#include<cstdlib> | |
#include<algorithm> | |
#include<vector> | |
using namespace std; | |
struct node{ | |
int data; | |
struct node *left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<set> | |
#include<cstdlib> | |
using namespace std; | |
struct node{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstdlib> | |
#include<queue> | |
#include<map> | |
using namespace std; | |
struct node{ | |
int data; | |
struct node *left; | |
struct node *right; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
using namespace std; | |
int getvalue(char r) | |
{ | |
if (r == 'I') | |
return 1; | |
if (r == 'V') | |
return 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstdlib> | |
#include<cstdio> | |
using namespace std; | |
struct node{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstdlib> | |
using namespace std; | |
struct node{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<limits.h> | |
struct node{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; | |
struct node *newnode(int x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<queue> | |
#include<climits> | |
#define initial 0 | |
#define waiting 1 | |
#define visited 2 | |
#define NIL -1 | |
using namespace std; | |
int adj[10][10]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<stack> | |
#define initial 0 | |
#define visited 1 | |
#define finished 2 | |
using namespace std; | |
int adj[10][10]; | |
int rev_adj[10][10]; | |
int state[10]; |
OlderNewer