Avinash Gupta has Published 5 Articles

Frequency Measuring Techniques for Competitive Programming

Avinash Gupta

Avinash Gupta

Updated on 28-Aug-2023 18:17:21

157 Views

In this article, we are going to find the different ways to find the frequency of numbers present in an array []. These methods are very useful in doing competitive programming for different problems for different cases. Sometimes, calculating the frequency of elements whether it is numbers or alphabets presented ... Read More

Find Words which are Greater than given Length k using Stringstream

Avinash Gupta

Avinash Gupta

Updated on 23-Aug-2023 21:30:42

153 Views

This is the problem based on stringstream class present in C++ “sstream” header file. Here, we have to find those strings whose lengths are greater than “k”. This task will be performed by using stringstream class. The concept is to partition the string and then iterate through the defined words. ... Read More

Length of Longest Common Subsequence Containing Vowels

Avinash Gupta

Avinash Gupta

Updated on 23-Aug-2023 21:28:51

91 Views

In this problem, our task is to find the length of the longest possible subsequence present in two strings such that every letter of the subsequence must be a vowel. With the help of the recursive algorithm and iterative algorithm, the given problem statement can be solved. In English Alphabet, ... Read More

Remove Duplicates from a String in O(1) Extra Space

Avinash Gupta

Avinash Gupta

Updated on 23-Aug-2023 17:04:35

161 Views

In this problem, our task is to remove all the duplicate characters present in the string other than the first occurrence of every character. Also, it's required to solve the problem without using any extra space, and the Space complexity must be O(1). Various approaches are used in this article. ... Read More

Sort Elements on the basis of the Number of Factors

Avinash Gupta

Avinash Gupta

Updated on 23-Aug-2023 16:47:22

190 Views

In this problem, our task is to sort the array of integers based on several factors of numbers present in the array as a priority. The array is the best way to store similar types of elements in java. But if the number of factors becomes equal in any two ... Read More

1
Advertisements