← All problemsSign in

Secret Series of Integers

Four Intergers are encoded in a special manner. A encoded integer of any integer in a series is a difference between the sum of integers at the right of that interger and the sum of integers at the left of that integer. Suppose 1 2 3 4 are four integers in a series then 1 will be encoded as (2+3+4), 2 will be encoded as (3+4-1), 3 will be encoded as (4-(1+2)) and 4 will be encoded as (-(1+2+3)).

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