docs(leetcode): rename and expand Two Sum exercise guide

Rename practice/LeetCode/two-sum.md to Two-Sum.md and expand guide with:
- Detailed intuition and problem statement.
- Brute-force nested loop approach with Mermaid flowchart visualization
- Optimized O(N) hash map lookup approach and visualization
- Complexity analysis and comparison of solutions
- Enum/Loop seen naming convention refactoring
This commit is contained in:
kiskaadee committed 2026-07-09 03:15:33 -05:00
1 parent bd069cc275
commit 0e4120fcf5
1 file changed
+1 -1
@@ -244,7 +244,7 @@ Each stored entry must contain two pieces of information:
- the value
- its index
A [**HashMap**](../../knowledge/hashmap.md) is an excellent fit for this requirement because it stores data as key-value pairs and provides average-case constant-time $O(1)$ lookups.
A [**HashMap**](../../knowledge/dsa/hashmap.md) is an excellent fit for this requirement because it stores data as key-value pairs and provides average-case constant-time $O(1)$ lookups.
As we traverse the array, we store: `value --> index`