Recent questions tagged data-structures

0 votes
1 answer
1
0 votes
1 answer
2
how many spanning trees are possible for complete graph of 4 vertices
0 votes
1 answer
3
How can we find the highest element in a singly linked list in O(1)? We are free to use any extra space.
0 votes
2 answers
7
Consider a binary min-heap containing $105$ distinct elements. Let $k$ be the index (in the underlying array) of the maximum element stored in the heap. The number of pos...
2 votes
2 answers
11
0 votes
0 answers
14
0 votes
1 answer
27
From a character string of lenth $m$, the number of sub-strings of all lengths that can be formed are:$m^2$$m$$m(m+1)/2$$m(\log m)$