Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 }

2494

#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 4486

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

2 2937

Post New Facebook C Interview Questions




Un-Answered Questions

What are best practices to follow while developing Struts2 application?

432


What is singleton session bean?

393


Is apple a unix or linux?

291


What does dtd mean?

282


Does transparent data encryption provide encryption when transmitting data across the network?

423






Give an account of proliferating cells ?

1188


Why every time that I hit the microphone or when I speak louder the amplifier is switched of?

1279


Explain dependency parsing in nlp?

345


What's difference between thread and process?

396


How to Form Abstract Local Addresses?

829


What is array and arraylist in java?

344


What large hairy spider from a city in Italy A. Vinecaliu B. Tarantula C. Both A and B D. None

1929


What is encodeuri() in javascript?

344


Explain the term memtable?

28


What are three common acronyms used in .net, and what do they stand for?

320