Courses
Tutorials
Practice
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
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Strings
3.2K+ articles
Competitive Programming
2.3K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Sorting
1.8K+ articles
Searching
1.7K+ articles
Dynamic Programming
1.6K+ articles
Tree
1.4K+ articles
DSA
/
Data Structures
/
Strings
Strings
3.2K+ posts
Recent Articles
Popular Articles
Commonly Asked Data Structure Interview Questions on Strings
Last Updated: 28 February 2025
Strings are essential data structures used to represent sequences of characters and are frequently encountered in coding interviews. Questions often focus on string manipu...
read more
Strings
Data Structures
strings
DSA
Python String Coding Practice Problems
Last Updated: 08 April 2025
This collection of Python string coding practice problems is designed to help you learn string manipulation.The following links contain coding problems where you need logi...
read more
Strings
Python
Python string-programs
Find a word with highest number of repeating characters
Last Updated: 08 January 2025
Given a string which contains multiple words, our task is to find the word which has highest number of repeating characters.Examples:Input: str = "hello world programming"...
read more
Strings
Hash
DSA
Case Insensitive Search
Last Updated: 03 December 2024
Given two stringstxtandpat, the task is to return all indices of occurrences of pat withintxt, ignoring the letter case (uppercase and lowercase characters are considered ...
read more
Strings
Pattern Searching
Python
DSA
Check for Binary String
Last Updated: 23 November 2024
Given a string s, the task is to check if it is a binary string or not. A binary string is a string which only contains the characters '0' and '1'.Examples:Input: s = "010...
read more
Strings
strings
DSA
Longest Common Prefix using Sorting
Last Updated: 14 November 2024
Given an array of stringsarr[],the task is to return thelongest common prefixamong each and every strings present in the array. If there’s no prefix common in all the stri...
read more
Arrays
Strings
Sorting
Longest Common Prefix
DSA
String Problems Topic Wise
Last Updated: 07 November 2024
In this post, string problems based on different topics are mentioned. Please refer String Data Structure article for fundamentals, basic operations and problems based on ...
read more
Strings
DSA
Remove a Character from a Given Position
Last Updated: 04 March 2025
Given a string and a position (0-based indexing), remove the character at the given position.Examples:Input : s = "abcde", pos = 1Output : s = "acde"Input : s = "a", pos...
read more
Strings
Data Structures
DSA
Program to Search a Character in a String
Last Updated: 25 March 2025
Given a character ch and a string s, the task is to find the index of the first occurrence of the character in the string. If the character is not present in the string, r...
read more
Strings
DSA
Fizz Buzz in C++
Last Updated: 25 September 2024
Fizz Buzz problem states that given an integer n, for every integer i = n, the task is to write a C++ program to print,'FizzBuzz' if i is divisible by 3 and 5, 'Fizz' if i...
read more
Strings
loop
C++
HashTable
Hash
DSA
String to Integer in Different Programming Languages
Last Updated: 24 August 2024
Below are example programs to do string to integer conversion in different programming languages.[GFGTABS] C++ #include bits/stdc++.husing namespace std;int ...
read more
Strings
Python
C++
C Programs
C++ Programs
Java Programs
Python Programs
PHP Programs
DSA
JavaScript Programs
String Subsequence and Substring in Python
Last Updated: 22 August 2024
Subsequence and Substring both are parts of the given String with some differences between them. Both of them are made using the characters in the given String only. The d...
read more
Strings
Python
Picked
Python-DSA
Count number of times given sentence can be fitted on screen
Last Updated: 11 June 2024
Given a screen with dimensions rows*cols, and a sentence represented as a list of strings. The task is to return the number of times the given sentence can be fitted on th...
read more
Strings
Google
two-pointer-algorithm
Picked
Interview-Questions
DSA
Special Ranking Teams by Votes
Last Updated: 14 June 2024
Given an array of strings votes[], representing the voters' rankings. A special ranking system where each voter ranks all teams from highest to lowest. The task is to Sort...
read more
Strings
Hash
Picked
Atlassian
Interview-Questions
DSA
set
Remove at most K letter to equalize the frequency
Last Updated: 11 June 2024
Given a string S of length n, consisting of lowercase English letters. The task is to check if it is possible to remove at most K letter from S such that the frequency of ...
read more
Strings
Bloomberg
Hash
Picked
Interview-Questions
DSA
1
2
3
4
...
217
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 !