← All problemsSign in

Weight of String

Prof.(Dr).Sachit kumar is assigned a task by his fellow mates.He has given a string and has to calculate the weight of that string.The weight of string is calculated by adding the the weight values of each characters in that string. The weight value of each character is present in the string only just after the character.The weight of each character will be a single digit number(from 0 to 9). No

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