Aishwarya Mani Tripathi has Published 13 Articles

Maximize Time by Replacing ‘_’ in a given 24-Hour Format Time

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 23-Oct-2023 15:07:43

81 Views

Maximizing time by replacing ‘_’ in a given 24-hour format time is a problem that involves calculating the maximum possible time by replacing the missing digits in a given time in a 24-hour format. The task is to find the maximum time possible by replacing the characters ‘’ with any ... Read More

Flip the String by Either Swapping given Characters or Rotating it Horizontally for Q Queries

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 20-Oct-2023 15:09:31

62 Views

Flip the String by either swapping given characters or rotating it horizontally for Q queries is a fascinating problem that involves manipulating a string based on a series of queries. In this tutorial, we delve into this problem and provide a solution using C++. The problem statement revolves ... Read More

Flip all 0s in given Binary Strings K times with different Neighbours

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 20-Oct-2023 15:04:36

82 Views

The task of flipping 0s in a binary string while considering their adjacent characters has practical applications in various domains. In this tutorial, we delve into the problem of modifying a given binary string by repeatedly flipping the 0s that have different adjacent characters. Specifically, we aim to solve this ... Read More

Minimum Removals are Required such that a given String Consists only of a Pair of Alternating Characters

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 18:30:53

108 Views

Minimum removals required such that a given string consists only of a pair of alternating characters is a common problem in computer science and is encountered frequently in applications involving string manipulation. In this tutorial, we will solve this problem using the C++ programming language. We will begin ... Read More

Minimum Number of Replacements done of the Substring “01” with “110” to Remove it Completely

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 18:26:57

86 Views

The minimum number of replacements done of the substring “01” with “110” to remove it completely is a common problem in string manipulation and optimization. In this tutorial, we delve into this problem and present an efficient solution using C++. The problem entails finding the minimum number of ... Read More

Minimum distance between Duplicates in a String

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 18:22:57

111 Views

Finding the minimum distance between duplicates in a string is a frequently encountered problem in computer science. It involves finding the smallest distance between any two identical characters in a given string. For example, in the string "minimum distance, " the minimum distance between the two 'i's is two, as ... Read More

The Maximum Score Possible by Removing Substrings made up of Single Distinct Character

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 18:20:59

108 Views

The maximum score possible by removing substrings made up of a single distinct character is a well-known problem in the field of computer science and algorithm design. The problem statement involves finding the optimal solution to remove all the contiguous substrings from a binary string that contains only one type ... Read More

Lexicographically Kth-smallest string having ‘a’ X times and ‘b’ Y times

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 18:08:33

64 Views

Lexicographically Kth-smallest string having ‘a’ X times and ‘b’ Y times is a problem where we need to find the Kth smallest string that contains X number of ‘a’s and Y number of ‘b’s. The strings are arranged lexicographically which means that the smallest string comes first when we sort ... Read More

Count ways to Split a String into two Subsets that are Reverse of Each Other

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 17:37:37

59 Views

In this tutorial, we delve into the problem of dividing a given string into two non-empty subsets, where the first subset is the reverse of the second subset. We aim to provide an efficient solution to count the number of ways to achieve such partitions. By leveraging the power of ... Read More

Count Possible Decoding of a given Digit Sequence with Hidden Characters

Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

Updated on 08-Sep-2023 17:34:14

149 Views

Count possible decoding of a given digit sequence with hidden characters is a fascinating problem in the realm of string decoding. In this tutorial, we delve into the challenge of decoding a sequence of digits that may contain hidden characters denoted by asterisks ('*'). The task at hand ... Read More

Advertisements