Post New Treetop Solutions Civil Engineering Interview Questions
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 are the possible test scenarios around AVS check of any credit card? (Testing through payment gateway online) (What are the fields we should check while checking AVS and CVV)
How can you check a variable type at runtime in go programming language?
What are the steps to perform Load and Stress testing on a Website? What resources do I need to do this? Please advise. Thanks in advance.
How are voltmeter and am meter connected in the circuit?
Explain batch management process.
Explain the different types of source system?
What purpose does training serve? Explain the ingredients of a good training programme for the employed at various levels.
Where are the windows update files stored?
What is the importance of concurrency control?
How does tcp ip socket work?
Explain superiority of tlc over paper chromatography.
How to Extract RGB components of a color?
What are your planning in next role?
Dear Sir I have got through cable size calculation 10 sq mm cable size of one panel, how i be sure that used cable is 10sqmm. a) By measuring each strand of cpper & multilpy by pye and so on...... or By measuring any one cable core with insulation only.