Kicking Off: The First Day of the Grind

Tennis Kumar CTennis Kumar C
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! ๐Ÿš€

0
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

Tennis Kumar C
Tennis Kumar C