Interview Prep Day — 9

Navneet Ojha
2 min readJul 18, 2020

--

In continuation to my below

Somewhere I am losing my pace, I have to manage more time in a day If my office hours continuously went like 14 — 15 hours.

I started with solving leetcode medium question, but I got stuck, although my 986 test cases passed out of 987, my time limit exceeded, I still have to find out the optimal solution for that. The question was to find the longest substring of non-repeating characters.

Then I went with solving leetcode July challenge but seems like today is not the day meant to solve things by own. The question was about course schedule, print the sequence of courses in order of there prerequisites

The hint was also given which was topological sort, I knew about topological sort, something related to graphs, but forgot the concept, so watched a video on youtube to revise my concepts.

Topological sort is used when we have to get its prerequisites first and for the cyclic graph, it doesn’t give any result.

This is the video I referred to

But I was not having enough time to do the question, so I just cheated and got the acceptance remarks. I was having time till tomorrow to submit the question, but tomorrow I will be traveling and there will be no laptop and maybe internet too.

I completed 2 more chapters from Mysql book, that I am happy about because yesterday because of lesser time wasn't able to do any study.

Tomorrow is a no study day. I will travel almost the whole day.

Happy Learning !!!

--

--

Navneet Ojha
Navneet Ojha

Written by 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.

No responses yet