Multiple-choice questions written from each lecture. Pick an answer to see why it is right and the moment it comes from.
0/8 correct · 0 of 8 answered
Why does building a list of characters and joining them at the end give O(N) performance for string construction?
What are the three main actions performed when building a frequency map with a hash map?
In the two‑pointer palindrome check, why are the pointers moved forward or backward before comparing characters?
How does the sliding‑window technique update the sum when moving the window one position to the right?
What property of a predicate function allows binary search to be applied to find the first true value?
Why should nodes be marked as visited when they are enqueued in BFS rather than when they are dequeued?
In the recursive DFS for maximum binary‑tree depth, what value is returned when the current node is null?
How can a max‑heap be simulated using Python’s default min‑heap implementation?