icon
Personal Website

Weekly Coding β€’ 2025-11-02

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 πŸ€”