# Reversing a Singly Linked List: An Interview Coding Task Retrospective

DevFeed: [Reversing a Singly Linked List: An Interview Coding Task Retrospective](<https://devfeed.tech/articles/random-interview-coding-task-retrospective-38618.md>)

Original publisher: [Read original article](<https://krossovochkin.com/posts/2019_09_27_random_interview_coding_task_retrospective/>)

Published: 2019-09-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Vasya Drobushkov](<https://devfeed.tech/sources/vasya-drobushkov.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>), [Algorithms, Complexity](<https://devfeed.tech/topics/algorithms-complexity.md>), [debug](<https://devfeed.tech/topics/debug.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [coding](<https://devfeed.tech/tags/coding.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [debug](<https://devfeed.tech/tags/debug.md>), [interview](<https://devfeed.tech/tags/interview.md>)

## AI overview

The article reflects on coding tasks performed during interviews and explains how to reverse a singly linked list. It discusses constraints such as avoiding intermediate data structures, handling lists with one item, and using a linear-time algorithm.

## Source excerpt

Introduction It happens often that on interviews you've asked to perform some coding task. For unknown reason most of the times you've asked to write some code not in the IDE, but on piece of paper. I don't like such tasks on an interview, because in real life one won't write any kind of code on a paper. If you need to write something not in IDE you face issues like you can't quickly change something or write new code in between the lines. You don't get suggestions or autocomplete. Basically, you are out of you zone of comfort. Considering that interview by itself is a stress (no matter how confident you are in your knowledge) you might not complete the task successfully. But anyway such tasks are pretty common so one should be prepared for them.