employer cover photo
employer logo
employer logo

Siemens Digital Industries Software

Employeur impliqué

Question d’entretien chez Siemens Digital Industries Software

Find the duplicate in an Array

Réponse à la question d'entretien

Utilisateur anonyme

27 mars 2024

Tortoise Hare (Two pointer Method) - Floyd's cycle detection. O(n) time and O(1) space ; Don't use hash map since O(n) space but time O(n)