In this article, we will be solving LeetCode’s Swapping Nodes in a Linked List in JavaScript. Here is an article I wrote on Linked Lists and goes through a LeetCode problem. Recap, a linked list is a linear collection of nodes where each node points to the next node. Each node has a value property and a next property which references the next node in the list. This is what makes linked lists a linear data structure. There is a sequence and an order to the list. To get to the end of the list, we must start at the…

Chandler Hanson

Flatiron School software engineering alum. Experienced in JavaScript, React.js, Ruby, and Ruby on Rails. https://www.linkedin.com/in/chandler-hanson/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store