Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Facebook C Interview Questions
Questions Answers Views Company eMail

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;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2746

#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

2 5303

#‎include‬ void main() { int i; for(i=5;0;i++) { printf("%d",i); } }

2 3597

Post New Facebook C Interview Questions




Un-Answered Questions

What is the _jspservice() method?

541


What is the difference between data loader and import wizard?

212


What is zone of equivalence?

225


can u please mail me the syllabus for GET exam for damodar valley corporation?

1635


What is the purpose of pivot stage and types of containers in datastage

654






What are pivot tables and also mention its use?

292


How to do headhunting in information technology profiles? The recruiting is different in this kind of profiles?

1675


Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.

562


Is there any thread in our .net programs?

631


How to record a qtp script ?

592


In horses coat color is dependent upon genes as follows: A_B_ results in bay, aaB_ in black, A_bb in chestnut, aabb in liver. In addition, palimino is derived by Dd with chestnut. A palimono stallion (DdAAbb) is crossed with a palimino mare (DdAAbb). What percent of the offspring will be palimino?

1621


When should I use a custom login module versus a TAI to assert identity information?

495


I HAVE DONE B. SC . (BIO) AFTER THAT I HAVE DONE MBA HR AND NOW MANY INTERVIEWER ASK ME WHY I HAVE HONE MBA IN HR? PLZ ANSWER ME?

1966


What is razor? : asp.net mvc

593


What is unicode used for?

612