Answer Posted / nixiemae
Structure: The way in which the components, plan, designs
are interrelated that is structure.
Function: The Operation of each individual component as part
of the structure.
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
Write a program of prime number using recursion.
What is the return type of sizeof?
What is c language & why it is used?
Can a pointer be static?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Write a program which returns the first non repetitive character in the string?
What does typedef struct mean?
Explain the difference between #include "..." And #include <...> In c?
How to write c functions that modify head pointer of a linked list?
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
Write a code to remove duplicates in a string.
What is #ifdef ? What is its application?
What is atoi and atof in c?
using for loop sum 2 number of any 4 digit number in c language
Can a pointer be volatile in c?