Why Even Easy Problems Can Teach You a Lot


Writing - English Practice
✍️ Type: Free writing / Reflection
Hi, today is Friday, July 4, 2025.
Today I decided to tackle a problem on LeetCode:
Longest Common Prefix.
I intentionally chose an easy problem — it’s a great way to build confidence and keep learning.
When I first read the description, my initial idea was to use a LinkedHashMap
to record how many times each character appeared. It sounded reasonable at first, so I jumped straight into coding. Almost done... then I realized this approach doesn’t actually solve the problem.
It turns out this issue can’t be solved by simply tracking character frequencies.
I paused to think more deeply... but came up with nothing. So I researched online. I found there’s a much simpler and more direct way to solve it — something I probably should’ve figured out myself, but I didn’t. It felt like my thinking just disappeared.
I know I need more practice to improve — especially in data structures and algorithms. I also want to practice describing my approaches in English. That’s my goal moving forward.
Thanks for reading this far. Feel free to leave any comments!
🚫 No New Content – Low Quality – You Can Skip This
⚠️ Note: This is an early draft version or contains no meaningful update. Feel free to skip if you’re short on time.
This is part of my writing process to preserve multiple versions, helping me track progress in grammar, structure, fluency, and expression.
You’re welcome to skip this raw version if you’re not interested.
Original Draft (Raw Version):
Hi, Today is Friday, July 4, 2025. Today I want to solve a problem from LeetCode: Longest Common Prefix.
Just start with Easy diffcultion, It's a great way to learn.
After I got this description, using LinkedHashMap to record the appear times of each character approach come in my mind in the first place. With a simple thinking, I began to coding. Almost done, and I found this approach is not a correct solution, It's mean that the issue can not solved by this approach.
I dive into a deep think. Nothing! So I researched over internet, There is a easy way to solve it, I should fingler it out. but I can't. Disappear! I need more practice to improve. Pay attaction to learn DSA, practice to descript the approach in English as well. That's my goal!
Thanks for you guys all to read so far. Feel free to leave some comments.
Subscribe to my newsletter
Read articles from Ethan Zhang directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
