Aishwarya Mani Tripathi

Aishwarya Mani Tripathi

13 Articles Published

Articles by Aishwarya Mani Tripathi

Page 2 of 2

Check if a given pattern exists in a given string or not including wild cards * and .

Aishwarya Mani Tripathi
Aishwarya Mani Tripathi
Updated on 08-Sep-2023 331 Views

Check if a given pattern exists in a given string or not including wild cards * and . is a common problem in computer science and programming. In this problem, we are given a string (text) and a pattern, which can contain wildcard characters '*' and '.', and we need to check if the pattern matches the text or not. This problem is encountered in a wide range of applications, such as search engines, file systems, and network protocols. In this tutorial, we will discuss a simple and efficient solution to this problem using C++. We will start ...

Read More

Check if the String formed by the first and last X characters of a String is a Palindrome

Aishwarya Mani Tripathi
Aishwarya Mani Tripathi
Updated on 08-Sep-2023 198 Views

In this tutorial, we will explore a problem statement that involves checking whether a string, formed by combining the first X characters and the last X characters of a given string, is a palindrome or not. A palindrome refers to a sequence of characters that remain unchanged when reading both forwards and backwards. The task is to determine if the resulting combined string, derived from the specified characters at the beginning and end of the original string, exhibits palindrome properties. To accomplish this, we will delve into an effective solution using the C++ programming language. By breaking ...

Read More

Check if a permutation of S2 can be obtained by adding or removing characters from S1

Aishwarya Mani Tripathi
Aishwarya Mani Tripathi
Updated on 08-Sep-2023 160 Views

Checking if a permutation of S2 can be obtained by adding or removing characters from S1 is a common problem in computer science. This problem is of great significance in various domains, including data processing, text analysis, and pattern recognition. In this tutorial, we will be presenting a solution to this problem using C++ programming language. The approach involves analyzing the characteristics of S1 and S2 to establish whether S2 can be rearranged to form a permutation of S1. We will be providing the C++ code for this approach along with explanations to help readers understand the problem ...

Read More
Showing 11–13 of 13 articles
« Prev 1 2 Next »
Advertisements