Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Sorting
1.7k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
cpp-map
270+ articles
frequency-counting
730+ posts
Popular Articles
Recent Articles
Count the number of unique characters in a given String
Last Updated: 19 April 2023
Given a string, str consisting of lowercase English alphabets, the task is to find the number of unique characters present in the string.Exa
...read more
Strings
Searching
frequency-counting
Algo Geek
Algo-Geek 2021
DSA
Calculate the frequency of each word in the given string
Last Updated: 02 March 2023
Given a string str, the task is to find the frequency of each word in a string.Examples:Input: str = "Geeks For Geeks"Output:For 1Geeks 2Exp
...read more
Strings
STL
School Programming
C++ Programs
cpp-map
frequency-counting
DSA
Count common characters in two strings
Last Updated: 25 November 2021
Given two strings s1 and s2 consisting of lowercase English alphabets, the task is to count all the pairs of indices (i, j) from the given s
...read more
Strings
Algorithms
Searching
Competitive Programming
frequency-counting
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Sorting
1.7k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
cpp-map
270+ articles
Count Triplets such that one of the numbers can be written as sum of the other two
Last Updated: 05 February 2024
Given an array A[] of N integers. The task is to find the number of triples (i, j, k) , where i, j, k are indices and (1 = i j k = N), suc
...read more
Arrays
Searching
frequency-counting
DSA
Count Occurrences of Anagrams
Last Updated: 17 March 2025
Given a word pattern and a string text consisting of lowercase characters, the task is to return the count of substrings in text which are a
...read more
Strings
Pattern Searching
anagram
sliding-window
Arrays
frequency-counting
DSA
Printing frequency of each character just after its consecutive occurrences
Last Updated: 19 March 2024
Given a string in such a way that every character occurs in a repeated manner. Your task is to print the string by inserting the frequency o
...read more
Sorting
frequency-counting
DSA
Check if two strings are permutation of each other
Last Updated: 19 May 2023
Write a function to check whether two given strings are Permutation of each other or not. A Permutation of a string is another string that c
...read more
Strings
anagram
frequency-counting
Picked
DSA
Counting the Frequencies in a List Using Dictionary in Python
Last Updated: 10 February 2025
Counting the frequencies of items in a list using a dictionary in Python can be done in several ways. For beginners, manually using a basic
...read more
Python
Python Programs
frequency-counting
python-list
python-dict
Python dictionary-programs
Find frequency of each word in a string in Python
Last Updated: 20 February 2023
Write a python code to find the frequency of each word in a given string. Examples:Input : str[] = "Apple Mango Orange Mango Guava Guava Ma
...read more
Strings
Python
frequency-counting
DSA
Count occurrences of elements of list in Java
Last Updated: 31 May 2022
Suppose we have an elements in ArrayList, we can count the occurrences of elements present in a number of ways.HashMapThis data structure us
...read more
Java
Java Programs
Java-HashMap
frequency-counting
java-TreeMap
java-hashset
java-list
Java-List-Programs
Java-Map-Programs
Find one extra character in a string
Last Updated: 19 April 2023
Given two strings which are of lengths n and n+1. The second string contains all the characters of the first string, but there is one extra
...read more
Strings
Bit Magic
Bitwise-XOR
frequency-counting
DSA
Check if two strings have a common substring
Last Updated: 27 January 2023
You are given two strings str1 and str2. You have to check if the two strings share a common substring.Examples :Input : str1 = "HELLO"
...read more
Strings
cpp-vector
frequency-counting
DSA
Frequency of a Substring in a String
Last Updated: 18 April 2023
Given an input string and a pattern, the task is to find the frequency of occurrences of the string pattern in a given string.Examples:Input
...read more
Misc
Strings
Pattern Searching
frequency-counting
DSA
Program to sort string in descending order
Last Updated: 01 November 2022
Given a string, sort it in descending order.Examples:Input : alkasinghOutput : snlkihgaa Input : nupursinghOutput : uusrpnnihg Input : geeks
...read more
Misc
Strings
Sorting
Hash
frequency-counting
DSA
Remove duplicates from a string
Last Updated: 11 September 2024
Given a string s which may contain lowercase and uppercase characters. The task is to remove all duplicate characters from the string and fi
...read more
Strings
frequency-counting
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
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 !