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 }

2684

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

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

2 3427

Post New Facebook C Interview Questions




Un-Answered Questions

What is behavioral diagram in UML?

620


How to retrive current environment in laravel?

416


What are moments and collections?

427


What is meant by xsd?

419


What is the difference between a verilog task and a verilog function?

637






What is decorator in angular 2?

419


how we sesign the transformer give some specifion regarding design of transformers

1445


Why doesn’t Azure Redis Cache have an MSDN class library reference like some of the other Azure services?

280


What are the two basic ways in which classes that can be run as threads may be defined?

526


Tell me how we are getting light from electrical bulb?

447


What is Node.js foundation?

227


List languages/frameworks that can be used to develop windows azure applications?

238


Explain what if a file is corrupted or missing in a dataset?

1


Enhance the Debug() function so that the programmer has to press Enter or Return after debugging is deactivated?

2061


Does windows server 2016 come in 32 bit?

108