Step by Step Guide on Rotating LinkedLists in Javascript

Описание к видео Step by Step Guide on Rotating LinkedLists in Javascript

Part 3 of a 3 Part Series on Reversing LinkedLists

Part 1:    • Step by Step Walkthrough of Reversing...  
Part 2:    • How to Reverse a LinkedList In-place ...  

In this video, we continue exploring how to reverse a LinkedList by walking through a hard difficulty interview problem with Javascript.

The Challenge (Hard):
Given the head of a singly LinkedList and a number 'k', rotate the LinkedList to the right by 'k' nodes.

If, in the end, you are left with a sub-list with less than 'k' elements, reverse it too.

Video Overview:
1:01 Problem
4:17 Approach
7:48 Coding a Javascript Solution
25:14 Recap

Please subscribe to our channel :) We will kick off a brand new interview pattern next time.

Additional Resources:
Practice hundreds of real coding challenges at https://coderbyte.com/
Check out our tiktoks @coderbyte

Комментарии

Информация по комментариям в разработке