Kicking Off: The First Day of the Grind


๐ป Problems Solved:
โ
Contains Duplicate (Easy)
โ
Valid Anagram (Easy)
โ
Two Sum (Easy)
โ
Group Anagrams (Medium)
๐ Key Takeaways:
Hashing is powerful! Used HashMaps (or Sets) for quick lookups in most problems.
Sorting can simplify things. In "Valid Anagram", sorting made comparison easy.
Edge cases matter. Initially, I missed handling empty strings and single-character cases.
Group Anagrams was tricky! Using a frequency-count tuple for grouping was a cool trick.
โก Reflection:
Day 1 done! ๐ฏ Started with some array and hash-based problems, and the patterns are already getting clearer. "Group Anagrams" was a step up, but it was a good push. On to Day 2! ๐
Subscribe to my newsletter
Read articles from Tennis Kumar C directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
