LeetCode Solutions

Arrays

Hash-map lookups, prefix-style scans, and the baseline decisions that show up in almost every interview loop. The focus here is one-pass scans and complement lookups. Official LeetCode problems are linked on every page instead of being mirrored here.

1 published solutions
3 distinct tags
1 easy / 0 medium / 0 hard difficulty mix
May 21, 2026 most recently updated page

Published pages in this category

Every page keeps the problem summary, recognition pattern, reasoning, pitfalls, and the exact C++ source used on the site.

Arrays #01

Two Sum

Easy

Find the two indices in an unsorted array whose values add up to the target.

Solved arrayhash mapcomplement lookup