LeetCode taught me 300 solutions and zero patterns. So I build the version I needed.
reddit SideProject · 原文链接 ↗ · 54 分
I did LeetCode for a year. Around 300 problems. I could pass an interview on a problem I had seen. On a new one I froze. Here is what went wrong for me, specifically. The title told me the answer. "Sliding window: maximum sum subarray." I read the pattern before the problem. Recognition never got practised. The explanation assumed I already knew. "Use two pointers" is a solution, not an explanation. Why two pointers? What in the text gave it away? Silence. Nothing connected to my job. I solved LRU cache as a puzzle. I shipped an actual LRU cache six months later