For compiler a postfix expression is easier to evaluate than infix expression?
Consider the following pseudo code declare a stack of characters
while ( there are more characters in the word to read ) {
read a character push the character on the stack
} while ( the stack is not empty ) {
pop a character off the stack write the character to the screen
}
What is written to the screen for the input "apples"?
6 Consider the following function:
void test_a(int n)
{
cout << n << " ";
if (n>0) test_a(n-2);
}
What is printed by the call test_a(4)?
If there are N external nodes in a binary tree then what will be the no. of internal nodes in this binary tree?
If there are N internal nodes in a binary tree then what will be the no. of external nodes in this binary tree?
If we have 1000 sets each containing a single different person. Which of the following relation will be true on each set:
Which one of the following is NOT the property of equivalence relation:
If there are N elements in an array then the number of maximum steps needed to find an element using Binary Search is _______ .