Kicking Off: The First Day of the Grind

Kicking Off: The First Day of the Grind

Tracking my journey to mastering DSAβ€”one problem at a time! πŸš€

Β·

1 min read

πŸ’» 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! πŸš€

Β