Latest Placement OA Coding Questions Solved | Strings & DP Knapsack
Question · Posted Mar 2026
Question 1: Reverse ASCII Power Problem Statement: You are given a string Str containing only lowercase letters. Your task is to calculate and print the Reverse ASCII power of the string. The Reverse ASCII power of the string is calculated as the sum of for . Where is equal to . (Note: , essentially assigning 'a'=26, 'b'=25... 'z'=1). Input Format: The first line contains a string Str. Output Format: Print the Reverse ASCII power of the string. Example: Input: abc ...
The full answer & interview discussion are available to premium members.
Log in Create a free account