120 most-asked campus interview questions, grouped into 16 patterns. Tap a pattern to open it, tap a question for the logic in plain words, brute force vs optimal, the optimal C++ solution, and how it changes if the question is twisted.
Every snippet assumes #include <bits/stdc++.h> and using namespace std; at the top. Your "done" marks are saved in this browser.