code for replace tabs with equivalent number of blanks
No Answer is Posted For this Question
Be the First to Post Answer
WAP to accept first name,middle name & last name of a student display its initials?
How can I recover the file name given an open stream or file descriptor?
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.
Describe the order of precedence with regards to operators in C.
What is structure padding ?
Can you explain the four storage classes in C?
What do you mean by c what are the main characteristics of c language?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)
7 Answers Consultancy, DBU, FD, JK Associates, Kobe, Satyam,
who is the editor of 'pokemon'?
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<n1-1;i++) { if( !( (a1[i]>a1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }