Number of ways to insert two pairs of parentheses into a string of N characters
Given a string str of length N, the task is to find the number of ways to insert only 2 pairs of parentheses into the… Read More »
Given a string str of length N, the task is to find the number of ways to insert only 2 pairs of parentheses into the… Read More »
Given a string array item[] and an integer array price[] where price[i] is the price of the item[i] when purchased from the ith shop. The… Read More »
Given a string str, the task is to swap adjacent characters of this string in C. Examples: Input: str = “geeks” Output: NA Not possible… Read More »
Given a string S of length N containing only lower case letters. Also, given Q queries where each query consists of an integer P such… Read More »
Given a large integer as a string str, the task is find the number of matchsticks required to represent it. Examples: Input: str = “56”… Read More »
FLAMES is a popular game named after the acronym: Friends, Lovers, Affectionate, Marriage, Enemies, Sibling. This game does not accurately predict whether or not an… Read More »
Given two strings str1 and str2, the task is to write a C Program to concatenate these two strings without using the strcat() function Examples:… Read More »
Given a string str, the task is to print the characters in decreasing order of their frequency. If the frequency of two characters is same… Read More »
Given a string str of lowercase characters, the task is to find the minimum number of characters that need to added to the string in… Read More »
Given a string str consisting of digits, alphabets and special characters. The task is to extract all the integers from the given string. Examples: Input:… Read More »
Given a string str and a string array arr[], the task is to find the minimum count of substrings this can be splitted into such… Read More »
Given an integer N, the task is to find the minimum length string whose sum of each character (As a = 1, b = 2,… Read More »
Given string str. The task is to find the length of the string using %n format specifier Examples: Input: Geeks For Geeks Output: 15 Input:… Read More »
Given two strings str1 and str2, the task is to check whether both of the string can be made equal by copying any character of… Read More »
Given a large binary string str and an integer K, the task is to find the value of str % K. Examples: Input: str =… Read More »