← All problemsSign in

Spideys Picnic

Today Spidey decided to have a day off and decided to go on a picnic. Unfortunately there was a malfunction in his Quinjet and he landed in Latveria (Kingdom of Doctor Doom). Doctor Doom was however in a good mood and allowed to let him go as long as he answered a particular question Doom was trying to solve. The question is to find the length of the largest subsequence of the array which forms an

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