Walmart
Walmart

Software Development Engineer 2

Reverse Linked List

Medium
Round 1CodingCandidate Selected

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.

AI Powered

Share Your Story

Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.

Take Mock Interview

Prepare better with expert feedback

Want to Connect 1:1?

Connect with me 1:1 for career guidance, resume reviews, interviews, and more.

Show Your Love!

Connect with us on social media