Skip to content

Tag Archives: strings

Given a number N and string S, count the number of ways to create a binary string (containing only ‘0’ and ‘1’) of size N… Read More
Given a string S of length N, the task is to find two non-intersecting strings of equal length such that the sum of absolute differences… Read More
A string is a sequence of characters, often used to represent text. In programming, strings are a common data type and are used for a… Read More
Given two binary strings S and T of size N and M respectively, the task is to check if S can be converted into T… Read More
Before getting into at() method we should know about what arrays, strings and Typed array in JavaScript is and also how to access arrays JavaScript… Read More
Given a string S of size N, representing a large integer. The task is to find the largest valued even integer which is a non-empty… Read More
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
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
Comma Separated Values or CSV is a type of text file where each value is delimited by a comma. CSV files are very useful for… 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

Start Your Coding Journey Now!