Recent questions in Programming and DS

7 votes
4 answers
2603
Consider a 2D array with elemnts stored in the form of lower triangular matrix.The elements must be crossed to read A[4,2] from the array [-6..................+8 , -6.......
1 votes
1 answer
2604
What will be the output ?#include<stdio.h>int main(){ char *str1 = "xyz"; char *str2 = "xyz"; if(str1 == str2) printf("equal"); else printf("une...
2 votes
2 answers
2605
Please provide a step by step solution to this problem.Create an AVL tree for the nodes A,Z,B,C,X,D,E. The number of leaves in the resultant tree is____________.
0 votes
2 answers
2606
4 votes
1 answer
2607
Answer given is D "gh" . how??
3 votes
2 answers
2608
2 votes
1 answer
2609
1 votes
1 answer
2610
How many distinct unlabelled simple graphs (connected or disconnected), having n nodes, are possible?
2 votes
0 answers
2611
3 votes
1 answer
2612
In circular singly linked list, insertion of node requires modification of how many pointers?1 pointers2 pointers3 pointers 4 pointers
5 votes
1 answer
2613
What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?O(n)O(1)θ(n2)θ...
2 votes
2 answers
2614
5 votes
3 answers
2616
1.Linear Probing suffers from both primary and secondary clustering. true or false?2. Quadratic Probing suffers from both primary and secondary clustering. true or fal...
2 votes
1 answer
2619
2 votes
5 answers
2620
A 4-ary tree,i.e. each node has either 0 or 4 children tree has 20 leaf nodes. Then the total number of nodes in the tree are ____.