Given N lowercase sentences, the task is to find the minimum count of words among all of these sentences. Examples: Input: arr[] = { “there is… Read More
Tag Archives: strings
Given a binary array arr[] containing N integer elements, the task is to create a string s which contains all N elements at the same… Read More
Given a string S of size N, the task is to sort the string based on their ASCII values. Examples: Input: S = “Geeks7”Output: 7GeeksExplanation:… Read More
Given an array arr[] consisting of N strings where each string consists of ‘(‘ and ‘)’, the task is to check if a Regular Bracket… Read More
Given a string S, in one move it is allowed to remove two adjacent equal characters. After the removal, both endpoints of the removed characters… Read More
Pre-requisite: if-else This article focuses on discussing what happens when the print statement is used inside the if-else conditional statement. For example: Consider the below… Read More
Given a string S, the task is to find the string which is lexicographically smallest and not a subsequence of the given string S. Examples:… Read More
Given an array of strings, words[] of size M and a string target of size N. The task is to find the minimum number of… Read More
String data type makes a very important part of any programming language. Rust handles strings a bit differently from other languages. The String data… Read More
Given two strings S1 and S2, representing sentences, the task is to print both sentences after removing all words which are present in both sentences.… Read More
Given a binary string S of length N (1 ≤ N ≤ 105), the task is to print a permutation A consisting of integers 0… Read More
Given a binary string S, the task is to convert the given string S to its lexicographic maximum form by reversing substrings having an even… Read More
Given a Binary string str of length N, the task is to find the last character removed from the string by repeatedly removing the first… Read More
Given a string str of length N, the task is to print all possible non-empty subsequences of the given string such that the subsequences either… Read More