icon
Personal Website

Weekly Coding • 2025-11-02

Good evening, this week I spent 7 hours on LeetCode. Completed the following problems:

:: LeetCode ::

  • 168. Excel Sheet Column Title 🟢 Easy
    • The task seemed more Medium than Easy to me. It required handling a number system without the digit "zero"
  • 169. Majority Element 🟢 Easy
    • The prompt also suggested programming the same thing but "without using extra space." How to do that... I didn't see much point in looking for an answer, as I don't think there's a practical solution.
  • 171. Excel Sheet Column Number 🟢 Easy
  • 172. Factorial Trailing Zeroes 🟡 Medium
    • I struggled for a while trying to solve this without a hint... And I succeeded. Later, I looked at the solution and it turned out there's a clever approach: every fifth element adds a zero 🥴 You don't even need to multiply the factorial here.
  • 173. Binary Search Tree Iterator 🟡 Medium
    • You can pre-build a list and then just iterate through it, which I did, making it Easy. But the list consumes memory. There might be a solution without the list, but I didn't delve into it as I didn't see much point.
  • 174. Dungeon Game 🔴 Hard
    • This one was stressful and frustrating. Initially, I had written appropriate code, but it turned out to be too slow: Time Limit Exceeded: 41/45. After that, I spent a long time trying to rewrite the code to find a faster way. Two hours later, I didn't manage it ❌ It seems I can't save the princess from the dungeon alone.

:: Personal Website :: I'm still uploading my pages to Google Search Console. There are 171 out of 270 pages left to process. Next week, I plan to do something new on my personal website and put LeetCode on hold 🤔