Programming & Data Structures
C programming pointers & recursion, stacks, queues, linked lists, trees, AVL, binary heaps & hashing.
Published Study Notes & Chapters (4)
C Pointers, Static Storage, Array Decay & Tricky Output Patterns
Precedence of * and ++, 2D array pointer arithmetic, static variables in recursion, and string literal traps.
AVL Trees, Binary Heaps & Hashing Probe Complexity
Minimum nodes in AVL tree of height h, O(n) Build-Heap proof, and LL/RR/LR/RL rotation rules.
Stacks, Queues, Linked Lists & Binary Tree Properties
Infix/Postfix evaluation, Circular Queue full/empty modular arithmetic, Linked List pointer complexities, Binary Tree degree handshaking lemma, and unique tree reconstruction rules.
Advanced C Programming: Pointer Arithmetic, 2D Array Decay, Struct Padding & Bitwise Traps
Clockwise/Spiral C declaration rule, &a vs a+1 pointer scaling, 2D array row pointers, structure alignment padding vs union size, static persistence, and sequence-point undefined behavior.
Solved Programming & Data Structures PYQs & Practice Questions
Launch Timed Mock (15 Qs)How many times is the printf statement executed when fun(6) is called for void fun(int n) { if (n <= 1) return; fun(n - 1); printf("*"); fun(n - 2); }?
What integer value is returned by calling f(5) for the C function int f(int n) { static int r = 0; if (n <= 0) return 1; if (n > 3) { r = n; return f(n - 2) + 2; } return f(n - 1) + r; }?
In a Binary Max-Heap containing distinct elements stored in a 1-indexed array H[1..100], in which subarray index range MUST the minimum element reside?
Keys 12, 18, 13, 2, 3, 23, 5, 15 are inserted in order into an initially empty hash table of size using and Linear Probing. At which index is key 15 placed?
What is the minimum number of nodes in a height-balanced AVL tree of height (where a single root node has height )?
Which open-addressing collision resolution technique eliminates both primary and secondary clustering?
What is the minimum number of nodes in an height-balanced AVL tree of height (where a single root node has height )?
What is the tight worst-case time complexity of building a Binary Max-Heap bottom-up (Build-Max-Heap) from an unsorted array of elements?