The ratio of the length : breadth : height of a cuboid is 5 : 4: 3, and the volume is 7500. What will be its surface area ?
831There is a room with 6' x 8'. A 1' tile is fixed along the 4 walls in one row. How many 1" tiles require to finish the work.
1374Two persons start at the same point, walk in opposite directions with 5km/hr and 5.5km/hr respectively. What is the distance separated after 2 and half hrs?
1364Post New Hexaware General Aptitude Interview Questions
how to customize the view of my mailboxes?
How would you measure correlation in r?
Differentiate between Join, Merge and Lookup stage?
What is the architecture of sap crm?
What are empty tags?
Define APIs and use in Oracle HRMS?
What we can use to migrate use profile information from one computer to another?
What are pass by value and pass by reference?what is the disadvantage of pass by value?
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 an order of a system.
Can I download microsoft word?
why the flower petals are in particular is any biochemical work for that?
What is subrogation? : insurance sales
Why in KE5Z report in SAP Accounting Data not found?
Why is runtime broker using so much cpu?