## Longest substring of only 4’s from the first N characters of the infinite string

Given an integer N, the task is to find the length of the longest substring containing only 4’s from the first N characters of the… Read More »

- Check if a word exists in a grid or not
- Sum of similarities of string with all of its suffixes
- Program to print Spiral Pattern
- Count occurrences of a string that can be constructed from another given string
- Maximum possible time that can be formed from four digits
- Check if a binary string has two consecutive occurrences of one everywhere
- Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
- Count strings that end with the given pattern
- Print the longest prefix of the given string which is also the suffix of the same string
- Length of the longest substring with consecutive characters
- Minimum number of 1's to be replaced in a binary array
- Occurrences of a pattern in binary representation of a number
- Most frequent word in first String which is not present in second String
- Check if a string can be repeated to make another string
- Python program to find uncommon words from two Strings
- Check if a string is the typed name of the given name
- Sum of integers upto N with given unit digit (Set 2)
- Count of cyclic permutations having XOR with other binary string as 0
- Minimum number of consecutive sequences that can be formed in an array
- Find the count of Strictly decreasing Subarrays
- Count occurrences of a sub-string with one variable character
- Print a number as string of 'A' and 'B' in lexicographic order
- Replace two substrings (of a string) with each other
- Count of lines required to write the given String
- String matching with * (that matches with any) in any of the two strings
- Weighted sum of the characters of a string in an array | Set 2
- Print n 0s and m 1s such that no two 0s and no three 1s are together
- Count no. of columns that are not sorted in increasing order
- Longest substring of only 4's from the first N characters of the infinite string

Given an integer N, the task is to find the length of the longest substring containing only 4’s from the first N characters of the… Read More »

Given a string str, the task is to find the longest prefix which is also the suffix of the given string. The prefix and suffix… Read More »

Given a number N, the task is to print the string of ‘A’ and ‘B’ corresponding to that number. If we represent all numbers as… Read More »

Given 3 strings S, A and B. The task is to replace every sub-string of S equal to A with B and every sub-string of… Read More »

Given two strings str1 and str2 where str1 being the parent string. The task is to find out the number of string as str2 that… Read More »

Given a string str consisting of only characters ‘a’ and ‘b’, the task is to check whether the string is valid or not. In a… Read More »

Given a pattern pat and a string array sArr[], the task is to count the number of strings from the array that ends with the… Read More »

Given a string str of lowercase alphabets, the task is to find the length of the longest sub-string of characters in alphabetical order i.e. string… Read More »

Given two strings a and b, the task is to check how many times the string a can be repeated to generate the string b.… Read More »

Given two integers n and m where n is the number of 0s and m is the number of 1s. The task is to print… Read More »

You are given an array of strings str[], the task is to find the score of a given string s from the array. The score… Read More »

Given two strings a and b, and an integer k which is the index in b at which the character can be changed to any… Read More »

Given two integers N and K where K < N, the task is to generate a permutation of integers from 1 to N such that… Read More »

Given a 2D grid of characters and a word, the task is to check if that word exists in the grid or not. A word… Read More »

Given a string pat and an integer N, the task is to find the number of occurrences of the pattern pat in binary representation of… Read More »