Answer Posted / mukul kumar
keyward is special word which have constsnt meaning in
programing they have specific meaning.
examples:-if, for, do, etc.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain how do you sort filenames in a directory?
what is the height of tree if leaf node is at level 3. please explain
how do you programme Carrier Sense Multiple Access
What are the preprocessor categories?
Is main a keyword in c?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What the different types of arrays in c?
What is the heap?
How can I find the modification date and time of a file?
Why is c still so popular?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Is boolean a datatype in c?
Write programs for String Reversal & Palindrome check
Do you know what are bitwise shift operators in c programming?
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