Linked List Problems in Java - 43: Reverse list in Group of K elements

preview_player
Показать описание

In this video, we're going to reveal exact steps to Reverse list in Group of K elements in Java

CHECK OUT CODING SIMPLIFIED

★☆★ VIEW THE BLOG POST: ★☆★

I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 200+ videos.

★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★

★☆★ Send us mail at: ★☆★

This Problem is synonym of following problems:

Reverse list in Group of K elements in Java,
Reverse list in Group of K elements,
how to Reverse list in Group of K elements in Java,
reverse,
group of k,
coding simplified,
linked list,
java,
Рекомендации по теме
Комментарии
Автор

smart logic loved this way keep doing more videos like this

sivaganesh
Автор

node.next=prev;


prev is null
is node.next is null
i m confuse

topthingwhichyoushouldkn
Автор

Doubt = node . next = previous kese ho sakta h . Pelease ans...

kunalsihare
Автор

how can this restraint be covered? : if the number of nodes in the linked list is not a multiple of k, then the nodes that are left out at the end should remain as-is.

josevalbuena
Автор

This will not work. The tail of the previous group should point to the head of the next group iN this case thetail of the previous group has next pointer as always null

humanhuman
Автор

Going too fast in this video... didnt understand and you didnt debug it also

ayushmiharia
Автор

Your answer is not passing leetcode test cases

raahim
Автор

Only the nodes multiples of K should be reversed not all... in your case all are getting reversed.

pranavkuthe