This text was automatically translated to English language by
LLM tool.
Good evening! This week, I spent 7 hours on LeetCode. I completed the following tasks:
:: LeetCode ::
-
168. Excel Sheet Column Title π’ Easy
- This task felt more like a Medium than an Easy to me. You need to handle a numbering system that doesn’t include the digit “zero.”
-
169. Majority Element π’ Easy
- The problem also suggested programming the same thing but “without additional memory.” How to do that is, of course, a question… one I decided NOT to look for the answer to, as I didn’t see much point in it.
- 171. Excel Sheet Column Number π’ Easy
-
172. Factorial Trailing Zeroes π‘ Medium
- I struggled with this one for a long time trying to solve it without hints… and I eventually succeeded. Later, I looked at the final solution, and it turned out there is a clever approach: every fifth element adds a zero π₯΄ Moreover, multiplying the factorial isn’t even necessary here.
-
173. Binary Search Tree Iterator π‘ Medium
- You can pre-generate a list here and then simply iterate through it later. Thatβs what I did, so for me, it was Easy. However, the list consumes memory. There might be a solution without a list, but I didn’t bother looking into it because I didn’t see much point in doing so.
-
174. Dungeon Game π΄ Hard. You need to navigate through a
dungeon where each room has a specific “cost.”
- This problem stressed me out and made me angry. Initially, I managed to write the correct code, but it turned out to be too slow: I got Time Limit Exceeded (41 / 45). After that, I spent a long time trying to rewrite the code so it could find the path faster. I spent two hours on it, but in the end, I failed. β It seems I won’t be able to rescue the princess from the dungeon on my own.
:: Personal Website ::
Iβm continuing to submit my pages to Google Search Console.
There are 171 out of 270 pages left to process. Next week, I
plan to do something new with my personal website and put
LeetCode aside π€