Amazon | Virtual Onsite | Intern | longest non repeating sequence in a circular linked list
Anonymous User
2297

a->b->c->d->e->a

return b->c->d->e->a or a->b->c->d->e

follow up
What if the number of node exceed 1000 thousand, how to skip some node

Hint
two set

Comments (3)