← All problemsSign in

Raju’s Shuffle

Given a random linked list of $N$ non -negative integers and a integer $K$ ,Write a function which accepts linked list head and integer $k$ as argument and shuffle the number starting from the head ($i$) element is to be swapped by $i+k$th element/position,and then next $i$ will be $i+k+1$, and print updated linked list you also need to write a code for linked list creation that will take input as

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start