## Count no. of columns that are not sorted in increasing order

Given an array A of N lowercase letter strings of the same length. The task is to find the count of columns that are not… Read More »

- Check whether two strings contain same characters in same order
- Count occurrences of a string that can be constructed from another given string
- Print the longest prefix of the given string which is also the suffix of the same string
- Minimum rotations required to get the same String | Set-2
- Check if a binary string has two consecutive occurrences of one everywhere
- Print a number as string of 'A' and 'B' in lexicographic order
- Sort an array of strings based on the frequency of good words in them
- Find minimum length sub-array which has given sub-sequence in it
- Count number of distinct substrings of a given length
- Replace two substrings (of a string) with each other
- Longest substring of only 4's from the first N characters of the infinite string
- Find if a binary matrix exists with given row and column sums
- Find the element in the matrix generated by given rules
- Longest prefix in a string with highest frequency
- Implement a Dictionary using Trie

Given an array A of N lowercase letter strings of the same length. The task is to find the count of columns that are not… Read More »

Given an array A[] of integers. The task is to count the total number of strictly decreasing subarrays( with size > 1 ). Examples: Input… Read More »

Given a binary array arr[] of zero’s and one’s only. The task is to find the minimum number of one’s to be changed to zero… Read More »

Given two string ‘S1’ and ‘S2’, the task is to return the most frequent (which is used the maximum number of times) word from ‘S1’… Read More »

You are given two strings A and B. Strings also contains special character * . you can replace * with any alphabetic character. Finally, you… 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 a name and a typed-name of a person. Sometimes, when typing a vowel [aeiou], the key might get long pressed, and the character will… Read More »

Given a number n as the size of the matrix, the task is to print a spiral pattern in 2D array of size n. Examples:… Read More »

Given two strings S1 and S2 ( size of S1 <= Size of S2 ). The task is to find the minimum number of characters… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 8, 54, 384… Examples:… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 0, 2, 4, 8, 12,… Read More »

Suppose we are given a string s1, we need to the find total number of substring(including multiple occurrences of the same substring) of s1 which… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 4, 15, 72, 420…… Read More »

Given a word and a text, return the count of the occurences of anagrams of the word in the text(For eg: anagrams of word for… Read More »

Given two strings str1 and str2. The task is to find the minimum number of characters to be replaced by $ in string str1 such… Read More »