Member-only story

#OneYearCodingPlan: HashSet, Hashmap, and Graphs

Anjali Viramgama
4 min readJan 6, 2021

--

#OneYearCodingPlan : Month 5 & 6

In this article, we’ll discuss Hashmaps, HashSets, and Graphs for coding interviews.

HashSet and HashMap

If you ask me about my favorite data structure, it’d be a HashMap. It also has to be the most used data structure for me in coding interviews, especially because it’s very easy to implement. I also solve dynamic programming problems with hashmaps instead when I cannot figure out the DP solution, and end up with reasonable solutions several times.

Source — GeeksForGeeks

Timeline:

Format, syntax, and design— 1 week

Easy, Medium, and Hard questions — 1 week each

Understanding the data structure and its usage

Usage of HashMap and HashSet

Understanding how it works beneath the hood

Solve these two, they make great easy level design questions as well: Designing a HashSet and a HashMap

Problem Solving

These questions can be a part of technical trivia type questions.

For coding round prep, start with easy questions, and slowly upgrade to…

--

--

Anjali Viramgama
Anjali Viramgama

Written by Anjali Viramgama

Passionate about coding, cybersecurity and inclusion and diversity of women in tech!

Responses (1)

Write a response