Рет қаралды 19,600
Check out the detailed data structures and algorithms course at www.interviewaccelerator.com
Here is the problem I'll cover in next week's Whiteboard Thursday:
You're given an array of integers where each element contains the index to the next element. Determine if the array has a cycle.
Try it out yourself and leave your answers in the comments below. And subscribe to get notified of the solution next week.
For advanced data structures and algorithms practice, visit irfanbaqui.com/coding-intervi...