series of even
CodeChefOpen on judge ↗
Series of even natural number is given . 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 ..... 10^9 you have to find a missing number if sum of first N number is given for example : N=5, Sum=24 you have to find missing term in first 5 number according to above series sum of first 5 number is 30, and if we subtract 6 from it then sum becomes 24 hence the missing number is 6 . ### Input:
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.
Sign in to chat with the tutor and save your progress.
Sign in to start