← All problemsSign in

Tony loves Pepper Potts

Tony stark is very good at finding patterns in given sequences and Pepper Potts already knows this. On Valentines day, when Tony stark proposed Pepper Potts, she gave him a sequence and asked him to find the pattern. After that Pepper Potts will give him a number N and Tony stark has to tell the Nth term. If Tony is able to solve the problem, she will accept the proposal. Now It has been more than

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