Given a binary array arr[] of size N, the task is to find the last number remaining in the array after performing a set of… Read More
Category Archives: Strings
Given two strings A and B consisting of unique lowercase letters, the task is to check if both these strings can be made equal by… Read More
Given a binary string str of N characters an integer K, the task is to find the minimum moves required to convert all characters of… Read More
Given a binary string str of size N whose every character is either ‘1’ or ‘0’. The task is to select minimum number of 0‘s… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More
Given a String S of length N, two integers B and C, the task is to traverse characters starting from the beginning, swapping a character… Read More
The task at hand involves manipulating a string S of length N, given as input. The string is subjected to a series of B swaps,… Read More
Given a String S of length N, two integers B and C, the task is to traverse characters starting from the beginning, swapping a character… Read More
Given a binary string S of size N, the task is to maximize the sum of the count of consecutive 0s present at the start… Read More
Given a binary string S of size N, the task is to maximize the sum of the count of consecutive 0s present at the start… Read More
Given a binary string S of size N, the task is to maximize the sum of the count of consecutive 0s present at the start… Read More
Given a binary string S of size N, the task is to maximize the sum of the count of consecutive 0s present at the start… Read More
Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d… Read More