Skip to content

Tag Archives: Suffix

Given a binary array arr[], the task is to find the longest subarray of non-empty cells after the removal of at most 1 empty cell. … Read More
Given a string S of size N, the task is to count the occurrences of all the prefixes of the given string S. Examples:   Input:… Read More
Given a positive integer N, the task is to check whether the binary equivalent of that integer ends with the given string str or not. Print… Read More
Given two arrays X[] and Y[] of positive integers, find the number of pairs such that x^y > y^x where x is an element from… Read More
Given a set of strings S and a string P, the task is to print all strings from the set with suffix P. Examples: Input:… Read More
Given an array arr[], the task is to find the sum of decomposition value of the suffixes subarray.Decomposition Value: Decomposition value of a subarray is… Read More
Given a positive integer N, the task is to check whether the binary equivalent of that integer ends with “001” or not. Print “Yes” if it… Read More
Given an array arr[] of length N, the task is to check if it can be formed by merging two permutations of the same or… Read More
Given a string S and two integer N and K, the task is to find the maximum length suffix such that occurrence of each character… Read More

Start Your Coding Journey Now!