Mallika Gupta has Published 19 Articles

Sentence Case of a given Camel cased String

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 11:35:16

479 Views

A C++ string is a collection of characters forming words. It may contains letters, numbers and even special characters. The sentences of a string can be clubbed together in different ways to form different types of representations. The camel case of a string denotes the string in such a way ... Read More

Reverse Individual Words With O(1) Extra Space

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 11:32:48

448 Views

A string may be composed of several words. Every word in a C++ string may contain letters, numbers or special symbols. Strings are considered to be storage elements for these kind of characters. Each word is separated by a space character. Each word also forms a string of characters. Reverse ... Read More

Rearrange the given string such that all Prime Multiple indexes have Same Character

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 11:21:57

92 Views

A string is a sequence of characters, numbers, Alphanumeric characters and special characters. The length of a string is the number of characters that are present in it. A prime number is the number which is divisible by 1 and the number itself. In this artice, we are ... Read More

Minimum Number of Adjacent Awaps to Convert a String into its given Anagram

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 11:15:35

460 Views

Every string is formed by a sequence of characters arranged in an order. The string may be composed of letters, number or even special characters. An anagram of any input string, is the string with a random permutation of characters. This implies, that when the order of the characters is ... Read More

Make Given Binary Strings Equal by Replacing Two Consecutive 0s with Single1 Repeatedly

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 11:12:06

203 Views

A binary string in any programming language is a collection of characters, 0 and 1. At every stage, the binary string follows the approach that the string can contain only these two characters. Consecutive characters in strings are the characters such that the difference in indices is 1. Let us ... Read More

Find distinct characters in distinct substrings of a string

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 10:39:39

582 Views

A string is a sequence of characters, numbers and special characters. A string may contain multiple substrings. A substring of a given string is any sequence of characters taken in order. It must satisfy the following properties All the characters should be taken from the input string The indexes ... Read More

Count of non-overlapping sub-strings “101” and “010” in the given binary string

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 10:33:58

550 Views

A binary string is a sequence of characters comprising of 0’s and 1’s only. A binary string can’t contain any other character. Some of the examples of binary strings are “0000”, ”01010” or “11111” A substring of a given string is a sequence of characters taken in order. A string ... Read More

Check if a given string can be formed by two other strings or their permutations

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 10:27:21

318 Views

A string is a continuous stream of characters, numbers. It may even contain special characters. An string can be composed of multiple sub-strings, also referred by words. A permutation of a string is another string composed of the same set of characters, possibly arranged in a different order. It can ... Read More

Case-specific sorting of strings

Mallika Gupta

Mallika Gupta

Updated on 15-Mar-2023 10:21:25

245 Views

Strings are the storage elements for storing different kinds of letters and symbols. It is indicative of a stream of characters in C++. Strings are denoted in double quotes or single quotes. The given input string can be comprised of both uppercase and lowercase characters. The problem statement is to ... Read More

Advertisements