From 0e4120fcf51470f83555e44577edb30e0397cf4e Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 9 Jul 2026 03:15:33 -0500 Subject: [PATCH] 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 --- practice/LeetCode/{two-sum.md => Two-Sum.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename practice/LeetCode/{two-sum.md => Two-Sum.md} (98%) diff --git a/practice/LeetCode/two-sum.md b/practice/LeetCode/Two-Sum.md similarity index 98% rename from practice/LeetCode/two-sum.md rename to practice/LeetCode/Two-Sum.md index 1d8d9e2..559ae88 100644 --- a/practice/LeetCode/two-sum.md +++ b/practice/LeetCode/Two-Sum.md @@ -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`