← All problemsSign in

sum of odd series

You have given N and Sum of first N odd number is given but in that one number is missing you have to find that number for example : N = 4 Sum = 13 In above example N=4 is given and sum=13 is given we have to find missing number in series . Sum of first 4 odd number is 1+3+5+7 = 16 But sum is given 13 that is the missing number is 3 . ### Input: - First line will contain $T$, number

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