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

0% completed

Vote For New Content
John Snow
Wrong Example

John Snow

Jan 6, 2024

In example 3 with input [2, 1, -1, -2] we already have a circle 1 -> 2 -> 1 isn't it?

0

0

Comments
Comments
Design Gurus
Design Gurus2 years ago

That's not right because of the following restriction:

The cycle should follow one direction.

On this page