Day 1 (19/01)

Feeling quite tired today. Managed to do 2 medium question, first question was quite easy (seen in CS2040S tutorial before). Second question I attempted a while back but forgot about it. Quite happy with the semi-solution I came up with, watched neetcode and could understand the rest of the solution. It would be nice if I am more energetic/ be more attentive and do the questions faster.

Day 2 (20/01)

Alot more energetic today because I slept properly! I think my body needs ~8hr of sleep, especially when I am tired. Today was the second time I did Coin Change, however I did not try very hard to do it again / figure out how to do it myself because I knew that the greedy approach was wrong (but I couldn’t figure out why). I went straight to neetcode for the solution. In the future, I would like to spend more time at least figuring out why the solution was wrong before relying on neetcode. I don’t want to get over-reliant and. loose the problem solving ability myself. I think a good thing / improvement I have made is that I don’t have to watch the coding section of neetcode before I know how to code up the solution!

Day 3 (21/01)

Did not watch any neetcode today! Gave myself time to think of solutions. Questions were generally about BFS/ DFS and I think I am fairly confident in those questions. TBH I always feel a little drowsy before I begin doing leetcode questions, but once I get into the rhythm it feels okay.

Day 4 (22/01)

Manged to do search in rotated sorted array (problem I was stuck on yesterday) by myself today without any help. My mind today is somewhere else, I couldn’t focus. Today felt a little slow but I am glad I still managed to do the problems.

Day 5 (23/01)

Week is over 🄳 I have the tendency to rush into questions thinking I can figure out the code without having a proper understanding on how my entire solution will look like. I think this strategy would sometimes work for simpler problems, but for my solution in Lowest Common Ancestor of a Binary Tree, there were alot of base cases and it was hard to figure out on the spot how to account for those base cases. I think next time, I would want to be able to work out 80% of the solution on pen and paper before moving on.