Indexing
CodeChefOpen on judge ↗
You are given a string of characters and you have to find the Sum of the indexes of each character (according to lexicographical order). check if the sum of all indexes is even or odd. If the sum of all index values is even then print "YES" (without quotes). else print "NO"(without quotes). $NOTE:$ The string contains only lowercase characters. ###Input: - First line will contain $T$
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