Тёмный

How to Reverse a LinkedList In-place by Alternating K Sublists 

Coderbyte
Подписаться 26 тыс.
Просмотров 749
50% 1

Part 2 of a 3 Part Series on Reversing LinkedLists
Watch part 1 here: • Step by Step Walkthrou...
In this video, we continue exploring how to reverse a LinkedList by exploring a medium difficulty interview problem.
The Challenge (Medium):
Given the head of a LinkedList and a number 'k', reverse every alternating 'k' sized sub-list starting from the head.
If, in the end, you are left with a sub-list with less than 'k' elements, reverse it too.
Video Overview:
0:33 Overview
1:20 Problem
3:03 Approach
8:01 Coding a Javascript Solution
29:06 Recap
Please subscribe to our channel :)
Join us next week for part 3 of this pattern where we’ll walk through a more challenging problem using LinkedLists.
Additional Resources:
Practice hundreds of real coding challenges at coderbyte.com/
Check out our tiktoks @coderbyte

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@veethamershiya5315
@veethamershiya5315 4 месяца назад
👍
@g_pazzini
@g_pazzini 11 месяцев назад
this should be considered as hard, instead of medium
@amorfati4559
@amorfati4559 Год назад
I was kind of lost on this one lmao
Далее
L21. Reverse Nodes in K Group Size of LinkedList
24:31
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Making an Algorithm Faster
30:08
Просмотров 98 тыс.
How to Traverse Binary Trees with Queues in Javascript
28:11
Negative Time is Real, Physicists Confirm. Kind Of.
6:59