Most popular coding interview questions and solutions

--

Since I started my job search I realized that without practicing coding questions it is not possible to crack an interview and get an offer. I thought this post will be helpful for all beginners . I have selected some most commonly asked and must do practice problems for you.

  1. Tree problems (DFS)

Solution

2. Sliding window maximum

Solution

3. Topological sort(Course Schedule)

Solution

4. Union Find(Number of Provinces)

Solution

5. Greedy(Partition Labels)

Solution

6. Binary Search(Find the Duplicate Number)

Solution

7. Two pointer(reverse string)

Solution:

8. Heap(Swim in Rising Water)

Solution:

9. HashMap(design my hashmap)

Solution:

10. Graph(keys and rooms)

Solution:

Hope you find this article helpful and for more questions feel free to contact me @kristinelpetrosyan@gmail.com

--

--

Kristinelpetrosyan
Kristinelpetrosyan

Written by Kristinelpetrosyan

Data Science student @Flatiron-School

No responses yet