Post New First Indian Corporation Accounting AllOther Interview Questions
How do bias and variance play out in machine learning?
What is detached object in hibernate?
What is the difference between ‘function declaration’ and ‘function expression’?
What is the typical shape of a population growth curve? How the biotic potential can be represented in the same graphic?
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
What is the advantage of c?
what are the functions of the recruitment module?
What are the effects of posting goods issue?
Define indexes?
What is Apache Spark and what are the benefits of Spark over MapReduce?
Can I delete old microsoft visual c++?
Explain the interfaces from one NE to another (e.g. Abis, Gb, etc.)?
Explain the directory structure in ember.js.
Is node js a virus?
What is the differnece between real dom and virtual dom?