Strange Problems
CodeChefOpen on judge ↗
Agarwal has a habit of creating Ajeeb Samasya as usual and Shubham always comes to his rescue. This is time he has created another samasya which is as follows. Read carefully! Shubham has an array of $N$ integers and an integer $K$. He wants to create a subsequence of this array with some conditions applied. He builds $ceil(N/K)$ blocks of this array with size of each block as [$i * K + 1$,min($(i
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.
Sign in to chat with the tutor and save your progress.
Sign in to start