← American Express questions

Detect cycle in a linked list

Filed under American Express · Also reported at Deutsche Telekom Labs, Gainsight, Teradata

The question

Write an algorithm to detect if a cycle exists in a given linked list.

No write-up yet. Related questions below have one.

Related American Express questions

Collected from public candidate posts and coding forums. Updated Nov 2026.