what is available in C language but not in C++?
Answer Posted / akash
c secures more privacy than c++
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Is it valid to address one element beyond the end of an array?
Did c have any year 2000 problems?
What are the types of data files?
What math functions are available for integers? For floating point?
Is c dynamically typed?
what is the height of tree if leaf node is at level 3. please explain
How do you convert strings to numbers in C?
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
What is structure padding and packing in c?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Is array a primitive data type in c?
What do you understand by friend-functions? How are they used?
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 purpose of type declarations?
What are the types of type specifiers?