Recent questions in Programming and DS

0 votes
0 answers
3961
This program shows undefined behaviour as "/" is not a sequence point and value of variable $i$ is modified more than once between two sequence points.
0 votes
0 answers
3962
9 votes
2 answers
3964
The number of ways , in which numbers 1,2,3,4,5 can be inserted into binary heap,such that resultant binary heap is max heap ?given ans :8
2 votes
1 answer
3965
FIve nodes labelled 1,2,3,4,5 are used to construct different binary trees. How many such binary trees can be constructed whose preorder traversal is 1,2,3,4,5 ?
5 votes
1 answer
3966
1 votes
1 answer
3967
The answer is given as 14.I calculated using Catalan number but the answer did not come as 14.
0 votes
1 answer
3968
Confusion in last printf Statement..Can anyone explain what printf Statement want to say...
0 votes
2 answers
3969
Step by step solution...... answer is -2
7 votes
3 answers
3971
0 votes
1 answer
3974
0 votes
0 answers
3975
6 votes
2 answers
3977
The number of min heap trees are possible with 15 elements such that every leaf node must be greater than all non-leaf nodes of the tree are ________.
1 votes
1 answer
3979
0 votes
0 answers
3980
Number of comparison made by algorithm that inserts values in the binary search tree?In the worst case for left or right skewed tree isn;t it o(n)?