Q1easyIn a Binary Min-Heap, where is the second smallest element located?AIn the left subtree of the root.BAt the last leaf node.CEither as the left child or the right child of the root.DIn the right subtree of the root.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q2hardWhat is the time complexity to build a Binary Heap from an unsorted array of N elements using the bottom-up heapify method?AO(N)BO(N²)CO(N log N)DO(log N)Check AnswerReveal Answer & ExplanationDiscuss on Board
Q3easyIn DSU, what is the purpose of **"Union by Rank"** (or Size)?ATo ensure the smaller tree is always attached under the root of the larger tree, keeping the combined tree shallow.BTo sort the sets.CTo compress the file size.DTo allow duplicate elements.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q4easyIn the context of Big-O, why do we say O(N) is "Better" than O(N^2)?ABecause for sufficiently large values of N, the execution time of O(N) will always be less than O(N^2).BBecause O(N) uses less memory.CBecause O(N) is easier to code.DBecause N is a smaller letter than N².Check AnswerReveal Answer & ExplanationDiscuss on Board
Q5easyWhat is Overlapping Sub-problems in the context of DP?AWhen an algorithm solves the same sub-problems multiple times.BWhen two functions have the same name.CWhen the base case is never reached.DWhen the array indices are out of bounds.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q6mediumYou are building a search engine "Auto-complete" feature. Which data structure provides the most efficient way to store words and find all words starting with a specific prefix?AHash MapBTrie (Prefix Tree)CBalanced BST (AVL)DLinked ListCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q7mediumWhy is bitwise AND with 1 (x & 1) often used to check if a number is odd, instead of x % 2 != 0?AIt works for negative numbers while modulo does not.BIt uses less RAM.CBitwise operations are usually faster at the hardware level than the division/ modulo unit.DIt is more accurate.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q8hardDuring a DFS on a Directed Graph, you encounter an edge (u, v) where v is already in the current recursion stack. This indicates:AA Shortest PathBA Forward EdgeCA Cycle (Back Edge)DA Tree EdgeCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q9hardAn algorithm has a time complexity of O(N!). If it takes 1 second to run for N = 10, how long will it approximately take for N = 11?A11 secondsB110 secondsC1.1 secondsD2 secondsCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q10easyWhat is the Alphabet Size (Σ) for a standard binary string algorithm?A256B1C26D2Check AnswerReveal Answer & ExplanationDiscuss on Board