← All problemsSign in

Chef and Binxor

Chef love binary tree so he made a question on it and ask his favourite student Rohan to solve. Question is that you have been given an array $A$ of length $N$ and a number $K(1 \leq K \leq 100)$ called partition number. $K$ divides the array in $N/K$ equal subarrays. Total subarray after division is - $N/K$ subarray if N % K == 0. - $N/K + 1$ subarray if N % K != 0. Last subarray is the group

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