Software Development Engineer 2
Detect Cycle in Linked List
Implement an algorithm to detect a cycle in a linked list. You can use Floyd’s Tortoise and Hare algorithm for this purpose. If a cycle exists, return true; otherwise, return false.
This question was asked in
Walmart Software Development Engineer 2 Interview Experience
The Walmart interview process was thorough and involved three rounds, covering a range of topics from coding challenges in the first round to behavioral and conceptual questions in the subsequent rounds. Candidates can expect to face programming questions such as reversing a linked list and detecting cycles, alongside discussions on React optimization and project experiences. Overall, the interview was moderately challenging and aimed at assessing both technical knowledge and personal experiences relevant to web development.