Siva Sai has Published 279 Articles

Count anagrams having first character as a consonant and no pair of consonants or vowels placed adjacently

Siva Sai

Siva Sai

Updated on 16-Oct-2023 16:28:28

75 Views

Anagrams are a fascinating concept in computer science and language processing. They are essentially words or phrases made by rearranging the letters of another word or phrase. The challenge increases when we introduce specific rules. Today, we'll delve into a unique problem - counting anagrams that start with a consonant ... Read More

Check if a sequence of path visits any coordinate twice or not

Siva Sai

Siva Sai

Updated on 16-Oct-2023 16:21:38

68 Views

In certain applications, we might be interested in checking whether a sequence of path visits any coordinate twice or not. This can be useful, for example, in GPS tracking systems to detect if a vehicle is going back and forth between two points. In this article, we will discuss how ... Read More

Check if two binary strings can be made equal by swapping 1s occurring before 0s

Siva Sai

Siva Sai

Updated on 16-Oct-2023 16:17:53

198 Views

In this article, we will be discussing an intriguing problem related to string manipulation and binary numbers in C++. The problem we will be tackling is "Check if two binary strings can be made equal by swapping 1s occurring before 0s". This problem is a great way to enhance your ... Read More

Check if substrings from three given strings can be concatenated to form a palindrome

Siva Sai

Siva Sai

Updated on 16-Oct-2023 15:38:05

109 Views

Palindromes are a fascinating topic in computer science and programming. A palindrome is a word, phrase, number, or other sequences of characters that read the same forward and backward, ignoring spaces, punctuation, and capitalization. In this article, we will investigate a unique problem: how to determine if substrings from three ... Read More

Check if given number contains only “01” and “10” as substring in its binary representation

Siva Sai

Siva Sai

Updated on 16-Oct-2023 15:20:35

151 Views

In this article, we delve into an interesting problem from the world of binary string manipulation: "Check if a given number contains only '01' and '10' as substrings in its binary representation". This problem challenges us to verify whether a number's binary representation contains only the substrings '01' and '10'. ... Read More

Check if characters of each word can be rearranged to form an Arithmetic Progression (AP)

Siva Sai

Siva Sai

Updated on 16-Oct-2023 15:16:26

72 Views

In this article, we will discuss how to check if the characters of each word in a given string can be rearranged to form an Arithmetic Progression (AP). We will also implement the solution in C++ and provide an example to illustrate the working of the code. Arithmetic Progression (AP) ... Read More

Check if characters of a string can be made non-decreasing by replacing ‘_’s

Siva Sai

Siva Sai

Updated on 16-Oct-2023 15:12:17

130 Views

In this article, we'll delve into an intriguing problem in the field of string manipulation: how to check if the characters of a given string can be made non-decreasing by replacing '?' characters. This problem provides an excellent opportunity to hone your skills in string manipulation and condition checking in ... Read More

Check if all strings of an array can be made same by interchanging characters

Siva Sai

Siva Sai

Updated on 16-Oct-2023 15:03:53

81 Views

In this article, we will explore the problem of checking whether all strings of an array can be made the same by interchanging characters. We will first understand the problem statement and then investigate both the naive and efficient approaches to solve this problem, along with their respective algorithms and ... Read More

Check if a string represents a hexadecimal number or not

Siva Sai

Siva Sai

Updated on 16-Oct-2023 14:53:15

2K+ Views

In computer science, hexadecimal is a base-16 number system. It uses 16 distinct symbols, including the ten decimal digits from 0 to 9 and the six letters A, B, C, D, E, and F to represent numbers from 0 to 15. In this article, we will discuss how to check ... Read More

Check if a string can be split into two substrings with equal number of vowels

Siva Sai

Siva Sai

Updated on 16-Oct-2023 14:16:58

208 Views

Welcome to another in-depth guide on a fascinating problem-solving topic in C++. This time, we will be tackling the problem of determining if a string can be divided into two substrings, each containing an equal number of vowels. This problem is an excellent exercise for honing your skills in string ... Read More

Previous 1 ... 3 4 5 6 7 ... 28 Next
Advertisements