## Maximize partitions in a given Binary String having the same ratio of 0s and 1s

Prabhdeep Singh

Updated on 17-May-2023 14:57:36

A binary string is a string that contains only zeros and ones as the different types of characters. We have given a binary string and the task is to divide it into some number of partitions (possibly zero) where each partition contains an equal ratio of zero and one. We ... Read More

## Maximum Occurring Character in a Linked List

Prabhdeep Singh

Updated on 17-May-2023 14:54:23

We have given a singly linked list of characters, and our task is to print the character which occurs the maximum time in the linked list. If the multiple characters have the same count of occurring then print the character which comes in the last. The Singly-linked list is a ... Read More

## Check if the summation of two words is equal to the target word

Prabhdeep Singh

Updated on 17-May-2023 14:52:42

We will be given three strings str1, str2, and str3 in this problem of the same or different lengths and we have to find whether the sum of the first two strings is equal to the third or not. Each of the strings contains elements less than ‘k’ which means ... Read More

## Lexicographically smallest string formed repeatedly deleting a character from substring ‘10’

Prabhdeep Singh

Updated on 17-May-2023 14:45:51

Lexicographically smallest string means among the set of strings is the string which appears first in the dictionary order is known as a lexicographically smallest string. We will be given a binary string (that contains only two different types of characters 0 and 1) and we can delete character ‘1’ ... Read More

## Maximum Pairs of Bracket Sequences which can be concatenated to form a Regular Bracket Sequence

Prabhdeep Singh

Updated on 17-May-2023 14:44:06

Regular Bracket Sequence means a string that contains the parentheses of both opening and closing types and results in properly closed brackets. The given sequence may be properly symmetrical and maybe not. In this problem, we are given a list of string that contains the bracket sequences and we have ... Read More

## Maximum count of 0s between two 1s in the given range for Q queries

Prabhdeep Singh

Updated on 17-May-2023 14:41:15

A binary string is a string that only contains the zeroes and ones as the different characters in them. We are given a binary string and an array of a given length that will contain the pairs. Each pair defines the range, and in that range, we have to return ... Read More

## Minimum cost for constructing the subsequence of length K from given string S

Prabhdeep Singh

Updated on 17-May-2023 14:39:01

We will be given a string of length n, an integer k, and an integer array of length 26. The integer array defines the cost of each lowercase character and the string will contain only lowercase letters. We have to create a subsequence of length k from the given string ... Read More

## Find an N-length Binary String having maximum sum of elements from given ranges

Prabhdeep Singh

Updated on 17-May-2023 14:36:19

We will be given an array that will contain the pairs which represent the range and their value will range from 0(inclusive) to N(exclusive). Here, N is the size of the binary string which we have to return as the answer. For all the given ranges we have to maximize ... Read More

## Sort an array by swapping adjacent elements from indices that contains ‘1’ in a given string

Prabhdeep Singh

Updated on 17-May-2023 14:33:57

Sorting an array means ordering all the elements of the array in increasing order. Sorting an array by swapping adjacent elements means we can only swap elements that are adjacent to each other but we can swap adjacent elements any number of times. We will be given a binary string ... Read More

## Minimum number of flipping adjacent bits required to make given Binary Strings equal

Prabhdeep Singh

Updated on 17-May-2023 14:30:48

A binary string is a string that contains only two different types of characters 0 and 1. We will be given two binary strings of the same length and our task is to make both of them equal by toggling two adjacent characters of the first string. Also, we have ... Read More

1 2 3 4 5 ... 13 Next