← All problemsSign in

MAGIC FACTOR

You have your first-class test in your course “Magic 101”. The test is obviously online due to the pandemic, but you decide to attempt the test honestly, unlike other students of your class. The task is as follows. You are given a list of $n$ words consisting of small English alphabet letters. Every word has a value which is the sum of values of each letter of the word. (For eg: 'a'=$1$, 'b'=$2

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