Thanweera Nourin A V has Published 32 Articles

Maximum count of characters that can replace ? by at most A 0s and B 1s with no adjacent duplicates

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 17:54:57

321 Views

The aim of this article is to implement a program maximum count of characters that can replace? by at most A 0s and B 1s with no adjacent duplicates. Given a couple of integers A and B, both of which that represent the number of 0s and 1s that are ... Read More

Minimize count of alternating subsequences to divide a given Binary String with subsequence number

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 16:17:51

37 Views

The aim of this article is to implement a program Minimize count of alternating subsequences to divide a given binary string with subsequence number. Here, you are provided with a binary string as part of the issue. In order to prevent any subsequence from including adjacent zeros and ones, ... Read More

Find the count of Alphabetic and Alphanumeric strings from given Array of Strings

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 16:08:30

88 Views

The aim of this article is to implement a program to find the count of alphabetic and alphanumeric strings from a given array of strings. As we know, a string is a group of characters that ends with the null character "\0" in C programming. Characters from the C string ... Read More

Convert a string Str1 to Str2 by moving B to right and A to left without crossover

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 16:00:18

64 Views

The aim of this article is to implement a program to convert a string Str1 to Str2 by moving B to right and A to left without crossover. As we know, a string is a group of characters that ends with the null character "\0" in C programming. Characters from ... Read More

Count of sum of “10” subsequences for each 1 in string with A 1s, B 10s and C 0s

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 15:58:43

65 Views

The aim of this article is to implement a program to obtain the count of sum of “10” subsequences for each 1 in string with A 1s, B 10s and C 0s. Example Let us take the Input: A = 1, B = 2, C = 3 Output obtained ... Read More

largest string formed by choosing words from a given Sentence as per given Pattern

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 15:57:04

73 Views

The aim of this article is to implement a program to obtain the Lexicographically largest string formed by choosing words from a given Sentence as per given pattern. As we know, a string is a group of characters that ends with the null character "\0" in C programming. Characters from ... Read More

Position of the leftmost set bit in a given binary string where all 1s appear at the end

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 31-Oct-2023 15:53:13

101 Views

The aim of this article is to implement a program to Position the leftmost set bit in a given binary string where all 1s appear at the end. A string of bits is known as a binary string. A binary string is utilized for storing non-traditional data, such as images, ... Read More

C++ Program to Check if all rows of a matrix are circular rotations of each other

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 30-Oct-2023 16:46:06

42 Views

The aim of this article is to implement a program C++ program to check if all rows of a matrix are circular rotations of each other. Here is a small glimpse on what a matrix exactly is. The rectangular array of symbols or numbers organized in rows and columns is ... Read More

C Program To Write Your Own atoi()

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 30-Oct-2023 16:42:37

148 Views

The aim of this article is to implement a program C Program To Write Your Own atoi(). Before we begin, let us take a deeper understanding of what an atoi() function is all about. This will help in writing the program as well as understanding the concepts pretty much easier. ... Read More

Minimize given Number by swapping adjacent digits with odd difference

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 30-Oct-2023 15:57:27

37 Views

The aim of this article is to implement a program to minimize a given number by swapping adjacent digits with odd differences. The goal is to determine the lowest amount that can be created from a string of size N indicating an integer using only the characters '1', '2', and ... Read More

Advertisements