Given a binary tree with integer values at each node, verify that it is a binary search tree.
Intern Interview Questions
248,963 intern interview questions shared by candidates
void fun1(struct node* head) { if(head == NULL) return; fun1(head->next); printf("%d ", head->data); }
Here is a problem P. How many ways can you solve P? What's the pros and cons of each implementation? E.g. what is the best way to represent a matrix?
DSA question: I was given a list of elements to begin with. My task was to insert the elements in a binary search tree such that the height of the tree remains minimum.
What is your experience and why hospitality.
Was asked a question to remove duplicate elements in an array
How to reverse a string
Classic one from them: You have an array and you want to find the first non-repeating element.
If you have all the companies that are traded, and live inputs are coming of which company is being traded and what is the volume, how do you maintain the data, so that you can carry out operation of giving the top 10 most traded companies by volume of shares most efficiently.
1) Find the intersection of two arrays as a set. 2) Find the mirror or a binary tree. 3) Find the first non unique character in a stream of potentially infinite data.
Viewing 1181 - 1190 interview questions