← All problemsSign in

Reverse 2

This is your second reverse coding question.Try to crack the logic and code it... Input Input description. - You will give a single integer N. Output Output description. - You have to crack the logic and output the necessary answer. Constraints 1 Example Input / Output 1 / 1 2 / 2 3 / 4 4 / 5 5 / 7 6 / 9 7 / 12 8 / 13 9 / 15 10 / 17 11 / 20 12 / 22 13 / 25 14 / 28 15 / 32 16 / 33 17 /

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