Skip to content

Category Archives: Pattern Searching

Given an array A[] of size N, the task is to check whether the sequence can be made strictly increasing by performing the following operation… Read More
Given two strings str1 and str2 containing lowercase letters. The task is to convert the given string str3 into lexicographically smallest and largest string that… Read More
Given 2 strings A and B . The task is to check if A can be converted into B by performing the following operation any… Read More
Given an array A[] of size N, find the permutation of array A such that the array B[] which is formed by taking the GCD… Read More
Given an array arr[] of length N consisting of uppercase English letters only and a letter ch. the task is to find the final array… Read More
Given a string S and a list lis[] of N number of words, the task is to find every possible (N+1)th word from string S… Read More
Given an integer N (N > 2), the task is to generate a binary string of size N that consists of equal numbers of “10”… Read More
Given an array arr[] of size N. The task is to check if the array has 3 elements in indices i, j and k such… Read More
Given a positive integer N, the task is to construct a permutation from 1 to N such that the absolute difference of elements is in… Read More
Given a string S representing a Morse Code, the task is to check is the code is valid or not. A Morse code is valid… Read More
Given an array arr[] containing N email addresses with different domains, the task is to find the unique domains and their frequencies from the list… Read More
Given two arrays, arr1[] of length N1 and arr2[] of length N2, consisting of numbers from 1 to 9 and arr1[] has some missing entries… Read More
Given an integer N and the task is to generate a permutation of the numbers in range [1, N] such that:  The GCD of all… Read More
Given an array arr[] of N integers and an integer K, the task is to do the below operations with this array K times. Operations… Read More
Given two strings, text and pattern, of size N and M (N > M)respectively, the task is to print all occurrences of pattern in text. … Read More

Start Your Coding Journey Now!