Source: <platform — link or ID> Difficulty: <Easy / Medium / Hard> Tags: <e.g. array, hashmap>
<A short restatement in your own words. Inputs, outputs, what's being asked.>
Input: ...
Output: ...
<The intuition, then the steps. If you started with brute force, say what was wrong with it.>
- Time:
O(...) - Space:
O(...)
<Edge cases, related patterns, anything worth remembering. Skip if there's nothing useful.>