Why do you want to join defence, however there are many options for your carrier like Engineering, doctor etc.?
46 56213Suppose in your family there is someone who is in contact with some terrorist group and you have been informed the he/she is responsible for mumbai terror attack then what you will do?
32 34340evrybody says to be truthful during the full ssb period . when asked to give one`s negative qualities should we be truthful here too ?
11 19585Post New NDA Interview Questions
What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?
How soon openstack releases happens?
What are functions in database?
Explain (in simple ) - root mean square. whats its role in electrical fundamandal.where its used
Do you personally involved with Major incident process ? If yes, how do you manage it in your present organization ? explain with real scenario !
Is it possible to provide multiple input to Hadoop? If yes then how?
what's query optimization and without use of IN AND Exist can we get another way data from query
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
Why do the pop ups in my wysiwyg editor not work or show gibberish?
What are the rules for naming an array?
Which is better — UDP or TCP and why?
Where can I purchase search engine visibility?
What is jsp and its architecture?
Is not null in php?
What are the steps you would take to transfer employee's salary from hr to fi?