How can I find leaf node with smallest level in a binary tree?
Answer / patuk panday
smallest level in a binary tree is the number is 0 and 1.
| Is This Answer Correct ? | 0 Yes | 2 No |
What is c definition?
Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”
Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1
How can I handle floating-point exceptions gracefully?
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
How to write a program to receive an integer & find its octal equivalent by using for loop?
1 1 2 1 2 3 1 2 3 4 1 2 3 1 2 1 generate this output using for loop
give one ip, find out which contry
what is the defrenece between structure and union
What is difference between structure and union in c?
write an algorithm and c program to add two 2x2 matrics
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?