Which dialog box allows users to switch to another area of the application?
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
Define join?
what is IComparable
Which method is used to access HFile directly without using HBase?
Define text stream object?
How can you add value to this Industry if offered the job?
Do cookies store passwords?
Is it possible to run Apache Spark on Apache Mesos?
What is data control in asp.net?
What is the maximum size of a database in mysql?
Why convert an applet to an application?
how can we retrieve value from one database server and store them another database server using sql server code
Why is triploblast more advanced than diploblast?
Which are the three main hdfs-site.xml properties?