Prabhdeep Singh has Published 188 Articles

Count of 3 length strings using given characters containing at least 2 different characters

Prabhdeep Singh

Prabhdeep Singh

Updated on 26-Jul-2023 10:27:26

172 Views

Three integers are given to us ‘a’, ‘b’, and ‘c’ represents the frequency of the three different characters ‘A’, ‘B’, and ‘C’. We have to find the number of different strings that can be formed by using these characters and there must be at least two different characters present in ... Read More

Maximize 0s to be flipped in a given Binary array such that there are at least K 0s between two 1s

Prabhdeep Singh

Prabhdeep Singh

Updated on 26-Jul-2023 10:11:07

159 Views

A Binary Array is a special type of array that only contains the numbers 0 and 1. In this problem, we have given a binary array and integer K. Our task is to count the maximum number of 0’s that can be flipped to 1 in a given binary array ... Read More

Print all Balanced Brackets Strings that can be formed by replacing wild card ‘?’

Prabhdeep Singh

Prabhdeep Singh

Updated on 26-Jul-2023 10:08:53

221 Views

Balanced Brackets mean if we have a string of brackets then each open bracket has a corresponding close bracket and the pair of brackets is properly nested. The size of the string should be ab even number. In this problem we have given a string of the brackets that also ... Read More

Check if the end of the given Binary string can be reached by choosing the jump value in between the given range

Prabhdeep Singh

Prabhdeep Singh

Updated on 26-Jul-2023 10:00:09

87 Views

A binary string is a string that contains only two different types of characters that are 0 and 1. We are given a binary string and two integers L and the R. We can make the jump of size between ‘L’ and ‘R’ length both inclusive and only from ... Read More

Minimum K such that every substring of length at least K contains a character c

Prabhdeep Singh

Prabhdeep Singh

Updated on 25-Jul-2023 15:21:05

271 Views

A string is given in this problem and we have to find a minimum length ‘k’ such that all the substrings of the given string of length k contains at least one common character. We will see three approaches for this problem, one the naive approach to find all the ... Read More

Kth Character After Replacing Each Character of String by its Frequency Exactly X Times

Prabhdeep Singh

Prabhdeep Singh

Updated on 25-Jul-2023 15:18:22

213 Views

In this problem we have given a string ‘str’, integer K, and integer X. That string ‘str’ contains only integers in the range between 1 to 9. We have to perform an operation over the string exactly X times. Operation is that every time we have to replace a character ... Read More

Convert given Strings into T by replacing characters in between strings any number of times

Prabhdeep Singh

Prabhdeep Singh

Updated on 25-Jul-2023 15:16:19

152 Views

Convert string means we have to make the same as a given string on the basis of a given condition. In this problem, we have given an array of strings ‘arr’ and string ‘T’ of size ‘M’. our task is to check if is it possible to make all the ... Read More

JavaScript Program to Find Minimum Insertions to Form a Palindrome

Prabhdeep Singh

Prabhdeep Singh

Updated on 12-Jul-2023 10:51:42

236 Views

We are given a string and we have to find the minimum number of different character that we need to insert in the given string at any place so that the final string will be palindrome. A palindrome is a string that is just equal to the reverse of it. ... Read More

JavaScript Program to Find Longest Common Prefix Using Word by Word Matching

Prabhdeep Singh

Prabhdeep Singh

Updated on 12-Jul-2023 10:08:00

346 Views

Prefixes are the substrings that start from the zeroth index of the given string and can be of any size from 1 to the complete length of the string. We are given a set of strings and we have to find the common prefix among all of them in the ... Read More

Python Program for Converting Roman Numerals to Decimal Lying Between 1 to 3999

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 21:34:23

710 Views

Roman numerals are known as the characters used in an arrangement of number notation based on the pre-Roman Roman system. All major symbols are covered in the section below. In this problem, we are given a string of Roman numerals and our task is to convert Roman numerals to decimals ... Read More

Previous 1 ... 5 6 7 8 9 ... 19 Next
Advertisements