Domanda di colloquio di Microsoft

Circular link list

Risposta di colloquio

Anonimo

13 apr 2010

use 1 fast and 1 slow pointer and a always true loop, if the one of the pointer hit a null first, the link list is not circular. if fast == slow then it is circular