Esha Thakur has Published 6 Articles

Count subsequences 01 in string generated by concatenation of given numeric string K times

Esha Thakur

Esha Thakur

Updated on 09-Feb-2024 15:51:54

62 Views

The analysis and manipulation of strings are fundamental operations in many applications of computer programming. Counting subsequences with the pattern "01" in a string formed by repetitively concatenating a given numeric string poses an interesting challenge. The primary question is determining the total count of such subsequences in the resulting ... Read More

Maximum possible number with concatenations of K numbers from a given array

Esha Thakur

Esha Thakur

Updated on 23-Jan-2024 10:15:32

70 Views

Finding the largest number that can be produced by concatenating K numbers from a given array is an exciting problem in the area of numerical manipulation and algorithmic difficulties. The sequence of concatenation must be carefully considered in this challenge because it affects the largest number's value. The complexity of ... Read More

Lexicographically smallest numeric string having odd digit counts

Esha Thakur

Esha Thakur

Updated on 23-Jan-2024 10:09:28

82 Views

This article offers a thorough method for creating a lexicographically short N−length number string, where each digit must have an odd count. We offer an in−depth explanation of the problem statement, suggest a successful algorithmic strategy, and put it into practice using C++. The efficiency of the solution is revealed ... Read More

Make Palindrome binary string with exactly ‘a’ 0s and ‘b’ 1s by replacing wild card '?'

Esha Thakur

Esha Thakur

Updated on 23-Jan-2024 09:46:41

70 Views

When dealing with string manipulation problems, it's common to encounter scenarios where we need to transform a given string into a specific pattern or format. One such problem is making a palindrome binary string with a certain number of '0's and '1's while replacing wildcard characters represented by '?'. In ... Read More

Find the single-digit sum of the alphabetical values of a string

Esha Thakur

Esha Thakur

Updated on 22-Jan-2024 18:16:06

130 Views

In order to find the single−digit sum of the alphabetical values of a string, we will explore the alphabetical values of a string and assign numerical values to letters of the alphabet. We will jump into the concept and an example to illustrate the steps involved, the algorithm behind this ... Read More

Sorting a Vector of Numeric Strings in Ascending Order

Esha Thakur

Esha Thakur

Updated on 06-Oct-2023 11:47:34

280 Views

In this article, we'll examine a C++ procedure for ascendingly sorting an array of numerical string values. Sorting is a basic operation that entails organizing elements in a predetermined order. Because they are character-based strings that represent numbers, and these numerical strings provide a special set of challenges when it ... Read More

1
Advertisements