← All problemsSign in

Arrange Bolcks

Majnu bhaiya has $2n$ Blocks, all blocks are placed on line at points $b_1,b_2,b_3,\dots,b_{2n}$ such that $b_i=b_{i-1}+1$ for all valid $i$. Now to save some space in his home he decided to move $n$ blocks from there original position and put it on other $n$ blocks such that there is exactly $2$ block on $n$ points. suppose $a_1,a_2,a_3,\dots,a_n$ is $n$ points where we have put $2$ blocks on e

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