Interview Prep Day — 2

Navneet Ojha
2 min readJul 11, 2020

In continuation to below post

I started my day by solving the leetcode challenge of the flattening link list. Multilevel link list, having a child and we have to flatten it by traversing the link list, I tried solving it on pen and paper but was not able to do it, I know how to do but I wasn’t able to code. So finally I ended up cheating.

Then I did OOPs interview questions and revised all the concepts of inheritance, polymorphism, abstraction, encapsulation, interfaces, aggregation, association composition, marked interfaces, copy constructor, etc

Then I started with leetcode easy questions

1st question was to left rotate array by k times. I did this question 6 months ago, but today I wasn’t able to solve it. then there was a question to remove the duplicate, it was easy, the next question I did was of the intersection of two arrays, I took pen and pencil and thought of using hashmap, I was going in the right direction but then no solution I was able to find, I tried doing it with brute force but there, also I was facing some issues then I finally checked out the solution. I did another question of returning true or false if no duplicates exist, that was the easiest one.

So today I tried solving questions from myself but I was unable, tomorrow is Sunday and I don't have much office work to do, I will be working on coding problems whole day, also I have a mock interview scheduled. Not prepared at all. I want to apologize as today I was having 2 hours extra which I wasted procrastinating, the biggest hurdle to achieve my dreams. But I will win over this problem and will achieve my goals soon.

Happy Learning!!!

--

--

Navneet Ojha

I am Indian by birth, Punjabi by destiny. Humanity is my religion. Love to eat, travel, read books and my million dreams keep me alive.