Software Development Engineer 2
Reverse Linked List
Write a function to reverse a singly linked list. The function should take the head of the list as input and return the new head after reversal. For example, given the list 1 -> 2 -> 3 -> NULL, it should return 3 -> 2 -> 1 -> NULL.
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.