Tag: Linked List

Reverse a Linked List – Interview Question

Given a singly linked list, reverse it. Let’s find out how to answer this question in a technical interview. Suppose Here is the list:     And here is how the output should look like: A linked list node has 2 components: the value and the reference to the next node. public class Node {…
Read more


September 9, 2020 0

Find Middle Element in a Linked List – Interview Question

Find out middle element in a linked list. Let’s see how to answer this question in a technical interview. To begin with you can draw a linked list on the whiteboard. A linked list has nodes in it which are connected to each other. Each node has two components: the value and reference to next…
Read more


October 12, 2018 0