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 }

2227

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

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

2 2350

Post New Facebook C Interview Questions






Un-Answered Questions

What is replication and database mirroring?

112


What is the difference between bounce rate & pogo sticking?

114


What is the Application Cache in HTML5 and why it is used?

106


What is the difference between interface and abstract class in c#?

93


What is ngmodule in angular?

82






Why do we need singleton pattern in c#?

99


Does repairing windows delete files?

87


How to get the current date in mysql?

146


Where can I find microsoft access on my computer?

84


What is overfitting and underfitting?

1


What is the degree of freedom for lasso?

56


How many rows and columns are in ms excel 2007?

17


You want to revalue the production orders using actual activity prices. Is there any configuration setting?

139


Explain the Approval Process Checklist?

8


If while installing a package with pip, you get the error no matching installation found, what can you do?

153