Equalize the array
CodeChefOpen on judge ↗
You are initially given an array $A$ and array $B$, each of size $n$. Array $A$ has all the elements as 1 present in it.You can perform a process on the array A i.e at any particular time you can change the value at any index i of the array A with the sum of the whole array A at that particular time. You need to tell whether you can change array A into array B or not? Given that you can apply t
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