Answer Posted / sanjaykuma
denni's reche in 1970 at at&tbell lab's
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is difference between main and void main?
What is array in C
What is an example of structure?
Explain what are run-time errors?
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
Where in memory are my variables stored?
Is there a way to switch on strings?
What is putchar() function?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Is a house a shell structure?
Tell us two differences between new () and malloc ()?
What is 1d array in c?
How can you increase the size of a dynamically allocated array?
What are the keywords in c?
Why c is procedure oriented?