## Permutation of a string with maximum number of characters greater than its adjacent characters

Given a string str, the task is to print the maximum count of characters which are greater than both its left and right character in… Read More »

Given a string str, the task is to print the maximum count of characters which are greater than both its left and right character in… Read More »

Given a string, find count of number of larger alphabets for every character of the string. Examples: Input : str = “abcd” Output : 3… Read More »

Given an array of N integers, find the difference between the summation of numbers whose frequency of all digits are same and different. For e.g.… Read More »

Given a very large number, print all the 3 digit repeating numbers with their frequency. If a 3 digit number appears more then once, print… Read More »

Write a python code to find the frequency of each word in a given string. Examples: Input : str[] = “Apple Mango Orange Mango Guava… Read More »

Given an array where every element occurs a times, except one element which occurs b (a>b) times. Find the element that occurs b times. Examples:… Read More »

Consider an array of size n with initial 0 values. How many indices will contain value at least x after performing m range updates. In… Read More »

Given a string of length n of capital letters. The task is to find the count of ‘GFG’ subsequence in the given string. Examples: Input… Read More »

Suppose we have an elements in ArrayList, we can count the occurrences of elements present in a number of ways. HashMap This data structure uses… Read More »

Given a string S. Count number of substrings in which each character occurs at most k times. Assume that the string consists of only lowercase… Read More »

Two strings are given, we need to find whether we can form second string by swapping the character of the first string. Examples: Input :… Read More »

Given an array arr[] of n positive integer. The task is find the size of the subset formed from the elements of the given array… Read More »

Given two strings which are of lengths n and n+1. The second string contains all the character of the first string, but there is one… Read More »

You are given a string s(only lowercase alphabets) with length n. Print the position of every character of the String it must acquire so that… Read More »

Given a string, find minimum number of changes to it so that all substrings of the string become distinct. Examples : Input : str =… Read More »