Answer Posted / nishant jain
C is a high-level and general purpose programming language that is ideal for developing firmware or portable applications. Originally intended for writing system software, C was developed at Bell Labs by Dennis Ritchie for the Unix Operating System (OS) in the early 1970
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What are logical errors and how does it differ from syntax errors?
Stimulate calculator using Switch-case-default statement for two numbers
What is the difference between struct and union in C?
how to find binary of number?
What are the features of the c language?
What is function what are the types of function?
What is struct node in c?
Can a pointer point to null?
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
Can you mix old-style and new-style function syntax?
What is the advantage of a random access file?
How do you view the path?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What are the __date__ and __time__ preprocessor commands?