Decrypt String from Alphabet to Integer Mapping Leetcode Solution

Problem Statement   In this problem, we are given a string containing digits (0-9) and ‘#’. We have to convert this string to a string of lowercase english letters by using the following mapping. Example s = “10#11#12” “jkab” Explanation: “10#” -> “j” , “11#” -> “k” , “1” -> “a” …

Read more

Count Number of Occurrences in a Sorted Array

Problem Statement   In the “Count Number of Occurrences in a Sorted Array” problem, we have given a sorted array. Count the number of occurrences or frequency in a sorted array of X where X is an integer. Example   Input 13 1 2 2 2 2 3 3 3 4 4 …

Read more