Sonal Meenu Singh has Published 52 Articles

Number of Times the given String Occurs in the Array in the Range [l, r]

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 16:19:30

61 Views

Introduction In this tutorial, we implement examples using C++ to find the number of times an input string occurs in an array of the range [l, r]. Only lowercase alphabets are used in the string array to resolve this task. Different strings are stored in the string array and traversed ... Read More

Minimum Number of Substrings of a String such that all are Power of 5

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 16:09:12

104 Views

Introduction In this tutorial, we implement 2 examples using C++ to find the minimum number of substrings in a given string. Those substrings are all powers of 5 that means, the substrings are the factors of the number 5. To implement the example, take an input binary string and generate ... Read More

Minimum Cost to Modify a String

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 13:55:29

207 Views

Introduction In this tutorial, we use C++ programming concepts to implement examples to find the minimum cost to modify a string. String modification includes operations to change one string into another string. String operations include insertion, deletion, and substitution. We predefined the cost of each operation. You can choose the ... Read More

Maximum Length Palindrome of a String that can be Created with Characters in Range L and R

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 13:54:04

91 Views

Introduction A palindrome is one that reads the same forward and backward. An example of a palindrome string is Mam. In this tutorial, we use C++ programming to find the maximum length palindrome of a string by predefining the range of characters. Our task is to find the ... Read More

Longest substring of only 4’s from the first N Characters of the Infinite String

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 12:54:01

68 Views

Introduction In this tutorial, we implement an approach to find the longest substring of only 4 using the first N characters of the infinite string. Infinite string using 4 looks like this: “44444444……” and for this string we define the length of characters to consider for solving the task. To ... Read More

Introduction to the Probabilistic Data Structures

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 12:25:38

532 Views

Introduction In this tutorial, we will discuss probabilistic data structures in detail. This tutorial will cover the meaning of a Probabilistic Data Structure, its types, and its benefits. When dealing with large data sets or Big Data, basic data structures that use hashtables or HashSets would not be effective enough. ... Read More

Given a String and an Integer k, find the kth Substring when all the Substrings are Sorted According to the given Condition

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 12:23:25

84 Views

Introduction In this tutorial, we implement an approach to find the kth substring after sorting all the substrings according to some conditions for a given string and the value of k. The condition to sort the substring is that the substrings are alphabetical while producing the substring in the order ... Read More

Generate all Permutations of a String that follow given Constraints

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 11:31:47

261 Views

Introduction In this tutorial, we implement two examples using C++ programming concepts to generate all permutations of an input string. Permutation of a string is the number of ways a string can be arranged by interchanging the position of characters. We also include some constraints or limitations. All permutations or ... Read More

Capitalize the First and Last Character of Each Word in a String

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 11:28:04

333 Views

Introduction In this tutorial, we implement an approach to capitalizing the first and last characters of each word in the input string. By iterating over the input string str, each word's starting and ending letters are capitalized. We implement this problem using C++ programming in two ways. Let's start ... Read More

Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 01-Aug-2023 09:43:27

687 Views

Introduction In this tutorial, we introduce an approach to sorting an alphanumeric string such that the position of alphabets and numbers remains unchanged. In this approach, we use C++ functions and take an input string containing characters and numbers. Generate the string without changing the alphabet and number positions. The ... Read More

Advertisements