← All problemsSign in

Evil Morty

In the multiverse there is a Morty smarted than Rick, infamously known as Evil Morty. Evil Morty wants to control all the other Ricks by travelling in there universe using the portal gun. There are $N$ universe in the multiverse, the $i^{th}$ universe has $S_i$ seismic count. Morty can travel only in increasing order of the universes i.e. if Morty visits $k$ universes $j_1, j_2,...., j_k$ then

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