GATE 2026 CS1 Question 33 – Programming and Data Structures
The height of a binary tree is the number of edges in the longest path from the root to a leaf in…
Read more →The height of a binary tree is the number of edges in the longest path from the root to a leaf in…
Read more →Consider the following program in C: #include <stdio.h> void func(int i, int j) { if(i < j) { int i = 0;…
Read more →Consider the following code snippet in C language that computes the number of nodes in a non-empty singly linked list pointed to…
Read more →Let 𝑃 be the set of all integers from 1 to 15. Consider any order of insertion of the elements of 𝑃…
Read more →Consider the recursive functions represented by the following code segment: int bar(int n){ if (n == 1) return 0; else return 1…
Read more →The following sequence corresponds to the preorder traversal of a binary search tree 𝑇: 50, 25, 13, 40, 30, 47, 75, 60,…
Read more →Consider a hash table 𝑃[0, 1, … , 10] that is initially empty. The hash table is maintained using open addressing with…
Read more →Let 𝑛 be an odd number greater than 100. Consider a binary minheap with 𝑛 elements stored in an array 𝑃 whose…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.