Kicking Off: The First Day of the Grind
Tracking my journey to mastering DSAβone problem at a time! π
π» 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! π
Β