Jordan Moore
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!

--

--

Jordan Moore
Jordan Moore

Written by Jordan Moore

Senior Software Engineer | Interview Consultant | jordanmoore.dev

No responses yet