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 }

2697

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

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

2 3455

Post New Facebook C Interview Questions




Un-Answered Questions

How does it work under-the-hood, when we create an instance of a Class without using ‘new’ keyword in Scala? When do we go for this approach?

7


Explain the difference between type ii with examples.

487


What is inheritance in term of oop (flash actionscript)?

449


What is skew data?

200


Define What is unit weight of normal concrete?

661






What are the drawbacks of extending an interface as opposed to extending a class?

461


How to use select query in laravel?

410


Explain about membership operator in python?

480


Do all html tags have an end tag?

464


In go language how you can check variable type at runtime?

1


Can you create a logon trigger in sql server 2005 express edition?

560


Explain how to perform remoting?

512


By using which bw palette we can create db table?

568


How do I align columns in word?

327


If I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, whats the problem?

101