Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 }

3130

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

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

2 4372

Post New Facebook C Interview Questions




Un-Answered Questions

Tell me how to implement you own package in laravel?

658


What is the purpose of the queue ?

368


In Hive, can you overwrite Hadoop MapReduce configuration in Hive?

734


What is the difference between the positional and keyword parameters? Give examples.

1190


Explain bootstrap 4 images?

5


What are various storage types permitted by openstack compute?

384


What are the different types of keys in the database?

895


What are the examples of standard spring events?

471


How will A Medium voltage circuit breaker(11 kV voltage level) operate under short circuit fault condition whether It is having short circuit release like Low voltage circuit breaker or relay should be given?

1882


How long do struts last?

881


Why is work scheduling required for semi finished and finished products?

930


Can we run sh file in windows?

859


What is ‘Training set’ and ‘Test set’?

95


What are the actions that can occur when a thread enters blocked state?

1007


What are the characteristics of 'scope'?

774