Thanweera Nourin A V has Published 32 Articles

Decrease and Conquer

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 23-Aug-2023 21:37:34

1K+ Views

Imagine yourself in a situation where you are having trouble coming up with a solution to your initial issue. What if I told you that a small part of the problem is simpler to solve and that you can use this answer to find the answer to the larger one? ... Read More

Decimal Representation of given Binary String is Divisible by 20 or Not

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 23-Aug-2023 21:36:19

47 Views

In this article, we take the challenge to determine whether or not the given binary number's decimal form can be divided by 20. The base-2 numeral system, often known as the binary numeral system, is a way of expressing numbers in mathematics that employs just two symbols, commonly "0" (zero) ... Read More

Minimum steps to determine the subsequence with max 1s based on given conditions

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 10-Aug-2023 15:56:16

47 Views

The aim of this article is to implement a program to find minimum steps to determine the subsequence with max 1s based on given conditions. So as we all know, a one-dimensional array containing characters that is terminated by a null can be used to define a string. Given is ... Read More

Minimize count of repositioning of characters to make all given Strings equal

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 10-Aug-2023 15:48:22

49 Views

The aim here is to determine whether it would be feasible to make all of the strings identical in any amount of operations provided an array Str of strings with size n. Any element can be taken out of the string and put back in at any point in the ... Read More

Count of strings to be concatenated with a character having frequency greater than sum of others

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 10-Aug-2023 15:45:40

43 Views

Our main aim here is to determine the most strings that are capable of being concatenated to ensure that just one letter has a frequency that exceeds the total of all the other characters, provided an array called arr[] containing M strings. Before going further, let's understand some basic concepts ... Read More

Maximum sum of lengths of a pair of strings with no common characters from a given array

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 28-Jul-2023 17:00:24

98 Views

The aim of this article is to implement a program to maximize the sum of lengths of a pair of strings with no common characters from a given array. By definition, a string is a collection of characters. Problem Statement Implement a program to maximize the sum of lengths of ... Read More

The camel case character present in a given string

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 28-Jul-2023 15:54:09

422 Views

The aim of this article is to implement a program to print the number of camel case character present in a given string. As you all know, a string is a collection of characters. Now let us see what camel case letters are. Programming languages like Java utilise a naming ... Read More

Program to perform a letter frequency attack on a monoalphabetic substitution cipher

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 28-Jul-2023 15:52:42

702 Views

The challenge is to display the top five probable plain texts which could be decrypted from the supplied monoalphabetic cypher utilizing the letter frequency attack from a string Str with size K representing the given monoalphabetic cypher. Let us see what exactly is frequency attack. The very foundation for frequency ... Read More

Maximum possible balanced binary substring splits with at most cost k

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 28-Jul-2023 15:37:48

64 Views

The array in the C programming language has a fixed size, which means that once the size is specified, it cannot be changed; you can neither shrink it or extend it. As we know, an array is a group of identically data-typed elements kept in consecutive memory regions. Given an ... Read More

Decode a given string by removing duplicate occurrences

Thanweera Nourin A V

Thanweera Nourin A V

Updated on 28-Jul-2023 15:34:20

79 Views

The aim of this article is to implement a program to decode a given string by removing duplicate occurrences. As you are aware of what a string is, a string is nothing but a collection of characters. Also there is no restriction in the repetitions of characters in a string. ... Read More

Advertisements