
For LeetCode 1920, an O(n) solution wasn't good enough. It wanted O(1) space. Here's the math trick (quotients & remainders) that makes it work.
a nODE TO enJOY. welcome.
I'm a Computer Science graduate and Full-Stack Developer in training. I'm trying to come out of my bubble by sharing what I'm learning—documenting my journey into software development through builds, confusion, and reflection.
Markdown supported · ⌘↵ to post
No responses yet.