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 }

1 3323

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

3 6551

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

2 4797

Post New Facebook C Interview Questions




Un-Answered Questions

Good evening all I need a small favour regarding reliance paper i wanna probable sample papers(e&i) of reliance. if any of u have any idea about dis then plz mail me back.i belongs to electronics and instrumentation engg.so i need e&i papers. thanking u....

2180


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1965


How do you ensure that your models are fair and unbiased?

172


Are you still writing code? Do you love it?

894


Write down ten test cases for below scenario: Increase the day by 1 and date format should be mm/dd/yyyy Conditions are : date should not be greater then 31 and date<1 month should not be greater then 12 and month<1 year should not be greater then 10000 and year<1 Thanks in advance

2394


What is your UNIX experience and the types of UNIX systems you have worked on.

2202


Hi, Can any1 pl send me the question pattern of HPCL exam for the ELECTRONICS stream.pl send it to meerasowmi@gmail.com.hope to hear frm u very soon....

2227


hi, this is harish. i had finsihed cognos course recently.can some one help in the area of project explination, interview questions,real time scenarious....this is my maild id nanagupta907@gmail.com

2036


I AM APPLY FOR CLERICAL CADRE IN SBI. SO ANYONE SEND ME QUESTION WITH ANSWERS, WHICH ARE RELATED TO THAT JOB. MY EMAIL ID IS shawetasingh24@gmail.com

2193


what is the rate of 4000sqft rate, with material tile plumbing all work with plinth? Pl. Send ans. Yourlifeme@indiatimes.com

3034


What are pointers? What are different types of pointers?

1303


Please provide me the entire format of P.F. & ESI

2211


plz send me paper of mppgcl 2008 or experience posted by any candidate

3876


What is the difference between upgrade and migration in sql server?

1217


How do I access a variable name programmatically?

86