Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Searching
1.7K+ articles
Hash
1.3K+ articles
frequency-counting
745+ posts
Recent Articles
Popular Articles
Check if Binary Array can be made Palindrome by flipping two bits at a time
Last Updated: 24 July 2023
Given a binary array A[] of size N, the task is to check whether the array can be converted into a palindrome by flipping two bits in each operation.Note: The operation ca...
read more
Greedy
Technical Scripter
Technical Scripter 2022
DSA
Arrays
frequency-counting
Count all pairs of rows and columns which are equal
Last Updated: 03 July 2024
Given a matrix mat[][] of size N * N (1 ? N ? 1000), the task is to find the number of pairs of rows and columns (Rowi, Colj), such that row Rowi and column Colj are equal...
read more
Matrix
Technical Scripter
Technical Scripter 2022
DSA
frequency-counting
Count Substrings with at least one occurrence of first K alphabet
Last Updated: 14 September 2023
Given a string S of size N and a positive integer K. The given string only consists of the first K English lowercase alphabets. The task is to find the number of substring...
read more
Strings
Hash
Technical Scripter
Technical Scripter 2022
DSA
frequency-counting
two-pointer-algorithm
Find the winner if player removes any number of 0 from one side of 1
Last Updated: 09 March 2023
Given an arr[] of binary digits. Consider two players X and Y are playing a game where in one move a player can remove any number of zeros from either the left or right of...
read more
Technical Scripter
Competitive Programming
Game Theory
Technical Scripter 2022
DSA
Arrays
frequency-counting
Find two unique Palindrome Strings using given String characters
Last Updated: 19 January 2023
You are given a string S of two distinct characters as input, the task is to find two strings using characters of the given string, such that both strings are different fr...
read more
Strings
Technical Scripter
Technical Scripter 2022
DSA
palindrome
frequency-counting
Minimize Array size by replacing adjacent integers by their Modulo
Last Updated: 15 May 2024
Given an array arr[] of positive integers of size N, the task is to find the minimum possible size of the array that can be obtained by replacing any two adjacent positive...
read more
Mathematical
Technical Scripter
Technical Scripter 2022
DSA
Modular Arithmetic
frequency-counting
Minimize deletion or append to make consecutive occurrence of all elements equal
Last Updated: 10 April 2023
Given an array arr[] of size N having positive elements, the task is to find the minimum number of deletion or append operations to make consecutive occurrences of all ele...
read more
Sorting
Technical Scripter
Technical Scripter 2022
DSA
Arrays
frequency-counting
Count of Subsequences with distinct elements
Last Updated: 29 October 2023
Given an array arr[] (1=a[i]=1e9) containing N (1=N=1e5) elements, the task is to find the total number of subsequences such that all elements in that subsequences are dis...
read more
Hash
DSA
Arrays
subsequence
cpp-unordered_map
frequency-counting
Map
JavaScript - Counting Frequencies of Array Elements
Last Updated: 14 November 2024
Here are the various approaches to count the frequencies of array elements in JavaScript.Using an Object (Simple and Efficient)This is the most common approach for countin...
read more
Hash
JavaScript
Web Technologies
DSA
Arrays
cpp-unordered_map
frequency-counting
javascript-array
JavaScript-DSA
JavaScript-Questions
Length after removing Invalid K-Length Substrings
Last Updated: 07 November 2023
Given a string 'S' of length N which consists of both Uppercase and Lowercase English alphabets and a positive integer K (1 = K = N), the task is to return the length of t...
read more
Mathematical
Hash
Geeks Premier League
DSA
sliding-window
HashTable
Java-HashMap
frequency-counting
Geeks Premier League 2023
Minimum size of subset od String with frequency more than half of Array
Last Updated: 12 May 2024
Given an Array of Strings (Arr), the task is to find the smallest subset of strings in the array such that the total count of those selected strings exceeds 50% of the siz...
read more
Strings
DSA
subset
frequency-counting
MindTickle
Lexicographically Largest Substring having each Characters even times
Last Updated: 12 December 2023
Given a string S of length N (1 ≤ N ≤ 105) that consists of lowercase English letters. The task is to find a substring such that rearranging the characters within a substr...
read more
Strings
Geeks Premier League
DSA
frequency-counting
Geeks Premier League 2023
Check if it is possible to make all strings of A[] equal to B[] using given operations
Last Updated: 11 January 2024
Consider two arrays, A[] and B[], each containing N strings. These strings are composed solely of digits ranging from 0 to 9. Then your task is to output YES or NO, by fol...
read more
Geeks Premier League
DSA
Arrays
Java-HashMap
frequency-counting
Geeks Premier League 2023
Find the minimum difference of 1s between two vertical halves of the given matrix
Last Updated: 15 February 2024
Given a binary square matrix M[][] of size NXN, where N is an even number. The task is to find the minimum difference of frequency of 1s between the first and the second v...
read more
Matrix
Geeks Premier League
DSA
frequency-counting
Geeks Premier League 2023
Transform Strings by Frequency Exchange and Swapping
Last Updated: 29 February 2024
Given two strings s1 and s2, the task is to check if they can be transformed into each other by performing the following operation any number of times on any string.Choosi...
read more
Strings
Geeks Premier League
DSA
Google
Facebook
Hash
frequency-counting
Geeks Premier League 2023
1
2
3
4
...
50
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !