Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content

My python solution. O(n). Basically the same approach as the solution. Avoids potential circular loop.

Eric Imho Jang

Aug 1, 2024

0

21

0

Aug 1, 2024

my solution

Mohammed Dh Abbas

Jul 28, 2024

0

15

0

Jul 28, 2024

Here is what I came up with! O(N) and a bit more readable IMO. Fire away!

Lucas

Sep 20, 2022

0

53

0

Mar 4, 2025