Get K-th letter of the decoded string formed by repeating substrings
Given a string S containing letter and digit and an integer K where, and . The task is to return the K-th letter of the… Read More »
Given a string S containing letter and digit and an integer K where, and . The task is to return the K-th letter of the… Read More »
Given a binary string of length at-least two. We need to check if it is possible to rearrange a binary string such that there alternate… Read More »
Given a string, the task is to replace all occurrences of pi with 3.14 in the given string. Examples: Input : str = “2 *… Read More »
Given a String with white spaces, the task is to remove all white spaces from a string using Java built-in methods. Examples: Input: str =… Read More »
Given a string of lowercase letters, reduce it by removing the characters which appears more than k times in the string. Examples: Input : str… Read More »
Given a string of lowercase letters and a number K. The task is to reduce it by removing the characters which appears strictly less than… Read More »
Given a number n. Count the number of changes in LED light when display one after another of a given number. (Initially all LED is… Read More »
Given two sentences as strings A and B. The task is to return a list of all uncommon words. A word is uncommon if it… Read More »
Given two positive integers L and R (represented as strings) where . The task is to find the total number of super-palindromes in the inclusive… Read More »
Given a string S and a range L and R, the task is to print the lexicographically largest string that can be formed from the… Read More »
Given a string S consisting only of lowercase letters check if the string has all characters appearing even times. Examples: Input : abaccaba Output :… Read More »
Given two strings, compare the strings using pointers Examples: Input: str1 = geeks, str2 = geeks Output: Both are equal Input: str1 = hello, str2… Read More »
Given an integer N, the task is to find the N-th character in the string made by concatenating natural numbers (Integers beginning from 1). The… Read More »
You are given a binary string str of length n. Suppose you create another string of size n * k by concatenating k copies of… Read More »
Given a string ‘str’, two integers ‘k’ and ‘p’. The task is to count all the sub-strings of ‘str’ having exactly ‘k’ characters that have… Read More »