Reversing a Singly Linked List

Reversing a linked list is an important concept for a software engineer to understand. In this post I share some Javascript code showing how to reverse a linked list in O(n) time complexity and O(1) space complexity.

The useRef hook: What is it and what does it do?

The useRef hook is a powerful hook that is somewhat difficult to understand and has a narrow use case. Being able to know when and how to use it will potentially unlock significant performance gains within your app if used correctly.