Increase the ASCII value of characters of the string by the given values Last Updated : 15 Feb, 2022 Comments Improve Suggest changes Like Article Like Report Content Removed Comment More infoAdvertise with us Next Article Increase the ASCII value of characters of the string by the given values M msdeep14 Follow Improve Article Tags : Strings DSA Arrays Airtel ASCII +1 More Practice Tags : AirtelArraysStrings Similar Reads Average of ASCII values of characters of a given string Given a string, the task is to find the average of ASCII values of characters in the string. Examples: Input: str = "for"Output: 109'f'= 102, 'o' = 111, 'r' = 114(102 + 111 + 114)/3 = 109 Input: str = "geeks" Output: 105 Source: Microsoft Internship Experience Approach: Start iterating through chara 5 min read Find the character made by adding all the characters of the given string Given a string str consisting of lowercase English alphabets. The task is to add all the character values i.e. 'a' = 1, 'b' = 2, 'c' = 3, ..., 'z' = 26 and output the character corresponding to the sum value. If it exceeds 26 then take sum % 26. Examples: Input: str = "gfg" Output: t (g + f + g) = 7 7 min read Program to find the largest and smallest ASCII valued characters in a string Given a string of lowercase and uppercase characters, your task is to find the largest and smallest alphabet (according to ASCII values) in the string. Note that in ASCII, all capital letters come before all small letters. Examples : Input : sample stringOutput : Largest = t, Smallest = aInput : Gee 6 min read Replace every character of string by character whose ASCII value is K times more than it Given string str consisting of lowercase letters only and an integer k, the task is to replace every character of the given string with a character whose ASCII value is k times more than it. If the ASCII value exceeds 'z', then start checking from 'a in a cyclic manner. Examples: Input: str = "abc", 9 min read Modify string by increasing each character by its distance from the end of the word Given a string S, the task is to modify the given string by replacing every character S[i] by a new character whose value is (S[i] + its position from the end of the word) Examples: Input: S = "acm fkz" Output: "cdm hlz" Explanation: There are 2 words in the given string {"acm", "fkz"} For "acm": a 7 min read Like