Hot questions in Programming and DS

3 votes
1 answer
1891
Express the following list in terms of a linked list structure suitable for internal representation.$(((ab)c)d((e)))$
0 votes
0 answers
1892
An array A of unknown size is filled with special symbols let say ‘#’ . Time required to find the size of A is:(A) O(1)(B) O(logn)(C) O(n)(D) O((logn)$^{2}$)
0 votes
2 answers
1893
0 votes
0 answers
1894
I don”t think 3rd statement is correct.
2 votes
1 answer
1895
The time required to search an element in a linked list of length n is$O(\log_2 n)$$O(n)$$O(1)$$O(n^2)$
0 votes
1 answer
1896
Which of the following is the proper declaration of a pointer?A. int x;B. int &x;C. ptr x;D. int *x;
0 votes
1 answer
1897
Ans : Option D But array size is 14 then how 15 is printed ?ptr size is 2 but precise answer given was 2.29 , how ?
0 votes
1 answer
1899
Which of the following algorithm is best suitable for sorting of linked list?A) QuickB) MergeC) HeapD) None
5 votes
5 answers
1901
______ is the number of moves of the smallest disc in Tower of Hanoi implementation where the tower consisting of 17 discs (numbered from 0 to 16)Answer given: $2^{16}$ ...
0 votes
0 answers
1902
Consider the integer array A[1…...100, 1…...100] in which the elements are stored in Z representation. If the base address of A is starting from 1000 onwards, size of...
1 votes
2 answers
1904
int main() { int a =50; switch(a) { default: a=45; case 49: a++; case 50: a ; case 51: a =a+1; } printf("%d",a); }my doubt is the default case is not executed here why??,...
0 votes
0 answers
1905
0 votes
0 answers
1906
0 votes
1 answer
1909
1 votes
1 answer
1910