1 min readApr 21, 2020
Great catch! I rewrote the algorithm to be O(n). Not sure why I didn’t include it that way the first time, since that’s what I had on LeetCode for the solution lol. Thank you for pointing this out!
Great catch! I rewrote the algorithm to be O(n). Not sure why I didn’t include it that way the first time, since that’s what I had on LeetCode for the solution lol. Thank you for pointing this out!
Senior Software Engineer | Interview Consultant | jordanmoore.dev