Answer Posted /
| Is This Answer Correct ? | Yes | No |
Post New Answer View All Answers
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
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;i
What are the forms of graphics?
what are the tools used in your project , How to ask the answer this question
What are the key components of a M2M system?
What is the business process involved in sap-crm?
What are the major reasons for balancing hydro-thermal mix?
If A Company pays amount thru bank for a supplier deducting tds on behalf of B company. Accounting entries to be made in company A and B
how to prepare to dao exams
What is the best email program for windows 7?
There are 3 societies A,B,C having some tractors each. A Gives B and C as many tractors as they already have. After some days B gives A and C as many tractors as they have. After some days C gives A and B as many tractors as they have. Finally each has 24 tractors.what is the original No.of tractors each had in the beginning?
What is the difference between Decorator and Adapter pattern?
How to integrate Active directory user to public site(internet site)
What is the relationship?
How much request can tomcat handle?