THERE R MORE MNC COMPANIES, LIKE HCL,WIPRO,TCS, LEAVING THOSE COMPANIES WHY DID U COME HERE TO ATTEND INTERVIEW FOR THIS COMPANY
21 57003is it possible to create a join logical file using two join logical files ? give exact reason for your answer
4 13401how to face telephonic round interview as a candidate. Kindly give me the tips. I am going to facing the telephonic interview for the post of IT networking sales Executive I am currently working with the same company Distributor . This is my Ist Interview in my life. My English is not very good
2 37695i am a college student in our place...i have a question What is the most question use in interviewing a company for making a system analysis and design proposal. give me some exmple for the open ended question and closed ended?
2551Post New Ocwen Interview Questions
What is viewdata?
when should I use method get, and when should I use method post in my cgis?
Explain the architecture of the sap bw system?
What is relational database with example?
Write the significance of electrochemical series? : Electrochemistry Corrosion
What n+1 testing is?
Explain sovereign wealth fund.
What are the layers of the osi reference model?
What are the different types of upgrades that can be performed in sql server? : sql server DBA
How would you control the size of an element on resize of the window in a component?
What is isr?
What are the different measures of economic growth?
What is joinpoint?
How to achieve polymorphism in c#?
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