I hereby claim:
- I am mohamedkhaledyousef on github.
- I am mkhy (https://keybase.io/mkhy) on keybase.
- I have a public key whose fingerprint is D187 19A0 E303 6068 B8C4 A368 7C9F 5AC8 B423 F0EE
To claim this, I am signing this object:
#include<iostream> | |
using namespace std; | |
//built node .... node = (data and pointer) | |
struct node //node or link | |
{ | |
int data; //data item | |
node* next; //pointer to next node |
//Stack implementation by class,safe stack. | |
#include <iostream> | |
using namespace std; | |
class stack | |
{ | |
private: | |
//Declare array in class | |
enum{MAX=10}; | |
int st[MAX]; |
#include <iostream> | |
#include <stack> | |
using namespace std; | |
void printStack(stack <int> myStack) | |
{ | |
stack <int> s= myStack; | |
while (!s.empty()) |
//Stack using linked list | |
#include<iostream> | |
using namespace std; | |
//Define node pointer | |
struct node | |
{ | |
int data; | |
node* next; |
#include <bits/stdc++.h> | |
using namespace std; | |
bool isBalanced(string s) | |
{ | |
vector<char> openingBracketsStack; | |
for(int i=0; i<s.size() ;++i) | |
{ |
#include <bits/stdc++.h> | |
using namespace std; | |
struct node | |
{ | |
int data; | |
node *next; | |
} | |
*front = NULL,*tail = NULL,*Node = NULL,*newNode = NULL; |
//QUEUE USING LINKED LIST | |
#include <bits/stdc++.h> | |
#include<conio.h> | |
using namespace std; | |
//Create a NODE | |
struct node | |
{ |
//Using 2 stacks | |
#include<iostream> | |
#include<stack> | |
using namespace std; | |
class myQueue | |
{ | |
private: |
//Using Array | |
#include <iostream> | |
using namespace std; | |
// Constants | |
#define max 20 | |
// Functions |
I hereby claim:
To claim this, I am signing this object: