1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | #include<bits/stdc++.h> using namespace std; struct bst { int val; bst *left,*right; }; bst *root=nullptr; void srch(int num,bst * head) {if (head==nullptr){ cout<<"\nNumber is not present\a"<<endl; return; } if (head->val==num) { cout<<"\nNumber is present\n\a"; return; } else { if(num<head->val) srch(num,head->left); else srch(num,head->right); } } void insrt(int num) { bst *node=new bst; node->val=num; node->left=node->right=nullptr; if(root==nullptr) { root=node; }else {bst * temp=root; while(temp!=nullptr) { if(num<=temp->val) {// to the left if (temp->left!=nullptr) temp=temp->left; else {temp->left=node; return; } }else {// goto r1111ight if(temp->right!=nullptr) { temp=temp->right; }else { temp->right=node; return; } } } } } void display(bst * head) {if(head==nullptr) return; display(head->left); cout<<" "<<head->val<<" "; display(head->right); } int main() { char ch; do { cout<<"\nPress\n1 To insert\n2. to display \n 3. to search\nq to exit--->"; ch=getchar(); if(ch=='1') {int i; cout<<"\nenter number to insert-->"; cin>>i; insrt(i); cout<<"\n_________________________\n\tdisplay\n_________________________\n\n"; display(root); cout<<"\n_________________________\n\n"; } if (ch=='2') {cout<<"\n_________________________\n\tdisplay\n_________________________\n\n"; display(root); cout<<"\n_________________________\n\n"; } if(ch=='3') { int i; cout<<"\nNUMBER TO SEARCH-->"; cin>>i; srch(i,root); }fflush(stdin); cout<<" \npress Enter key to continue\n"; getchar(); }while (ch!='q'); } |
1. Use the IMEI Number Every Android phone carries a unique IMEI number. It will be printed at the back of your device. If you are unable to find the number, you have to launch your phone app and dial the number *#06#. This will give you the IMEI number of your phone. Store this number in a safe place so that it helps you in locating your phone when it is lost 2 Android Device Manager Google has recently released a new locator feature for Android gadgets called Android Device Manager, which helps its users locate their lost or stolen phones and tablets. It functions in the same way as Lookout and Samsung’s “Find My Mobile”. Here’s how to use Android Device Manager. Go to the Google Settings app, then select Android device manager. By default, the locator feature is activated but to activate remote data wipe, select the box next to “Allow remote factory reset”, then select “activate”. To use this feature, open the site https://www.google.com/android/devicemanager and sig...
Your Affiliate Money Printing Machine is ready -
ReplyDeleteAnd getting it running is as easy as 1---2---3!
This is how it all works...
STEP 1. Choose which affiliate products you want to promote
STEP 2. Add some PUSH BUTTON TRAFFIC (it LITERALLY takes JUST 2 minutes)
STEP 3. See how the affiliate system explode your list and sell your affiliate products all on it's own!
Are you ready to make money ONLINE??
Click here to check it out
Easy "water hack" burns 2 lbs OVERNIGHT
ReplyDeleteMore than 160,000 men and women are hacking their diet with a simple and secret "liquid hack" to lose 2lbs each and every night in their sleep.
It's scientific and it works on anybody.
Just follow these easy step:
1) Get a clear glass and fill it up with water half glass
2) And now use this crazy hack
you'll be 2lbs thinner as soon as tomorrow!
Did you realize there's a 12 word phrase you can communicate to your man... that will induce intense emotions of love and impulsive attractiveness to you buried within his chest?
ReplyDeleteBecause deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, adore and protect you with his entire heart...
===> 12 Words Who Fuel A Man's Love Response
This instinct is so hardwired into a man's mind that it will drive him to try harder than ever before to make your relationship the best part of both of your lives.
As a matter of fact, triggering this dominant instinct is absolutely mandatory to achieving the best ever relationship with your man that the moment you send your man one of the "Secret Signals"...
...You will immediately find him open his mind and heart to you in a way he's never experienced before and he'll perceive you as the only woman in the world who has ever truly attracted him.
Your Affiliate Profit Machine is waiting -
ReplyDeleteAnd getting it set up is as simple as 1-2-3!
It's super easy how it works...
STEP 1. Input into the system which affiliate products the system will advertise
STEP 2. Add some PUSH button traffic (it takes JUST 2 minutes)
STEP 3. See how the system explode your list and sell your affiliate products on it's own!
Are you ready to make money ONLINE???
Get the full details here
If you're looking to lose weight then you have to get on this brand new custom keto meal plan.
ReplyDeleteTo create this keto diet service, licensed nutritionists, personal trainers, and chefs united to develop keto meal plans that are efficient, suitable, price-efficient, and fun.
From their grand opening in January 2019, 100's of individuals have already completely transformed their body and health with the benefits a good keto meal plan can offer.
Speaking of benefits; in this link, you'll discover 8 scientifically-proven ones offered by the keto meal plan.
Your Affiliate Profit Machine is waiting -
ReplyDeletePlus, getting it set up is as easy as 1...2...3!
Here are the steps to make it work...
STEP 1. Tell the system what affiliate products you want to promote
STEP 2. Add some PUSH BUTTON TRAFFIC (it ONLY takes 2 minutes)
STEP 3. See how the system explode your list and sell your affiliate products all by itself!
So, do you want to start making money???
Your MONEY MAKING affiliate solution is RIGHT HERE