Sonal Meenu Singh has Published 52 Articles

How to Decode the string encoded with the given algorithm?

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 03-Oct-2023 10:29:04

170 Views

Introduction Encoding means converting the text into some form of representation, and decoding is the process of converting the encoded text into its original form. Encoding and decoding are two interrelated techniques for transferring information from one form to another. In this tutorial, we implement an approach to decode the ... Read More

How to decrypt a string according to given algorithm?

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 03-Oct-2023 10:21:02

118 Views

Decryption or decrypt a string is the process used to protect confidential and sensitive data from hackers. It converts encrypted data or text into its original form. Encryption is the process of converting plain text into an unreadable and non-understandable cipher text format so that hackers cannot understand it. These ... Read More

Count of all substrings with sum of weights at most K

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 29-Sep-2023 17:36:18

283 Views

Introduction In this tutorial, we discuss the problem of counting the substrings from a given string with the sum of weights at most K. To implement the problem statement we consider a string S to generate substrings and some value for k. The character weights are predefined integer values and ... Read More

Check whether the string can be printed using same row of qwerty keypad

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 29-Sep-2023 17:33:46

84 Views

Introduction In this tutorial, we will check if an input string can be formed using characters in the same row of the Qwerty keypad. The task is to check whether a given string exists in a single row of the Qwerty keypad. To determine whether a string can be printed ... Read More

Check if a substring can be Palindromic by replacing K characters for Q queries

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 29-Sep-2023 17:08:38

124 Views

Introduction In this tutorial, we implement an approach to check substring is palindrome by replacing its K characters for Q queries. Palindromes are words that read the same in both directions. When you read a palindromic word from a forward or backward direction, it sounds the same. For example, madam, ... Read More

Largest Component Size in a Graph Formed by Connecting Non-Co-Prime Nodes

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 22-Aug-2023 17:12:55

72 Views

Introduction In this tutorial, we discuss the problem of finding the largest component size in a graph generated by connecting non-co-prime nodes through C++. Graphs are formed by nodes connected by edges. The components of the graph are a subset of values that form nodes. There is an array a[] ... Read More

Reverse alternate k characters in a string

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 16:53:38

180 Views

Introduction In this tutorial, we implement examples using C++ programming logic to reverse the alternate k characters in an input string. We define the value of k to reverse the characters in a given string. K is the number of characters to be reversed. The value of k can be ... Read More

Range Queries to find the Element having Maximum Digit Sum

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 16:48:43

148 Views

Introduction In this tutorial, we discuss the problem of range queries to find the element having Maximum Digit Sum in C++. To solve the problem, take an array of elements and some queries. The queries denote the indices of the array and using those queries find the array element with ... Read More

Queries for the Count of Even Digit Sum Elements in the given Range using Segment Tree

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 16:45:44

55 Views

Introduction In this tutorial, we implement an approach in C++ to resolve queries for the count of even digit sum elements in the given range. We use a segment tree. To solve this task, we consider an array of elements with queries defining the range of the subarray. In that ... Read More

Print Strings In Reverse Dictionary Order Using Trie

Sonal Meenu Singh

Sonal Meenu Singh

Updated on 18-Aug-2023 16:29:28

135 Views

Introduction This tutorial implements an approach to printing Strings In Reverse Dictionary Order Using Trie. Trie is a data structure with a tree representation. It is in ordered form and provides an efficient approach for string retrieval. It has nodes and edges like a tree data structure. To solve the ... Read More

Advertisements