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
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
frequency-counting
730+ articles
binary-string
370+ articles
substring
340+ articles
DSA
>
Data Structures
>
Strings
Strings
3.2k+ posts
Popular Articles
Recent Articles
String in Data Structure
Last Updated: 11 December 2024
A string is a sequence of characters. The following facts make string an interesting data structure.Small set of elements. Unlike normal ar
...read more
Strings
DSA
Data Structure Types, Classifications and Applications
Last Updated: 11 February 2025
A data structure is a storage that is used to store and organize data. It is a way of arranging data on a computer so that it can be accesse
...read more
Arrays
Strings
Linked List
Tree
Graph
Stack
Queue
Data Structures
DSA
DSA-Blogs
Top 50 String Coding Problems for Interviews
Last Updated: 19 February 2025
String-related problems often assess a candidate's understanding of concepts like pattern matching, manipulation, and efficient algorithm de
...read more
Strings
GFG Sheets
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
frequency-counting
730+ articles
binary-string
370+ articles
substring
340+ articles
Sort string of characters
Last Updated: 15 October 2024
Given a string of lowercase characters from 'a' - 'z'. We need to write a program to print the characters of this string in sorted order.Exa
...read more
Strings
Sorting
Hash
DSA
Caesar Cipher in Cryptography
Last Updated: 23 April 2025
The Caesar Cipher is one of the simplest and oldest methods of encrypting messages, named after Julius Caesar, who reportedly used it to pro
...read more
Strings
cryptography
Computer Networks
GATE CS
DSA
C Program to Check for Palindrome String
Last Updated: 10 January 2025
A string is said to be palindrome if the reverse of the string is the same as the string. In this article, we will learn how to check whethe
...read more
Strings
Morgan Stanley
Paytm
FactSet
palindrome
C Language
TCS
C-String
C Programs
C Basic Programs
DSA
Basic Coding Problems
Longest Palindromic Substring
Last Updated: 10 March 2025
Given a string s, the task is to find the longest substring which is a palindrome. If there are multiple answers, then return the first appe
...read more
Strings
Microsoft
Amazon
Groupon
Qualcomm
Samsung
Accolite
Zoho
MakeMyTrip
Visa
Dynamic Programming
strings
DSA
Check if two Strings are Anagrams of each other
Last Updated: 24 October 2024
Given two stringss1ands2consisting of lowercase characters, the task is to check whether the two given strings are anagrams of each other or
...read more
Strings
Amazon
Goldman Sachs
Nagarro
anagram
DSA
Longest Substring Without Repeating Characters
Last Updated: 20 March 2025
Given a string s having lowercase characters, find the length of the longest substring without repeating characters.Examples:Input: s = "gee
...read more
Strings
Microsoft
Amazon
Morgan Stanley
Housing.com
DSA
Longest Common Subsequence (LCS)
Last Updated: 04 March 2025
Given two strings, s1 and s2, the task is to find the length of the Longest Common Subsequence. If there is nocommon subsequence, return0. A
...read more
Strings
Amazon
Hike
FactSet
Dynamic Programming
subsequence
LCS
strings
DSA
KMP Algorithm for Pattern Searching
Last Updated: 25 February 2025
Given two strings txt and pat, the task is to return all indices ofoccurrencesof pat within txt. Examples:Input: txt = "abcab", pat = "ab"O
...read more
Strings
Amazon
Oracle
Accolite
Payu
MAQ Software
MakeMyTrip
Pattern Searching
DSA
Reverse words in a string
Last Updated: 18 March 2025
Given a string str, your task is to reverse the order of the words in the given string. Notethatstrmay contain leading or trailing dots(.) o
...read more
Strings
Microsoft
Amazon
Adobe
Morgan Stanley
Goldman Sachs
Cisco
Paytm
Accolite
Payu
Zoho
MAQ Software
SAP Labs
MakeMyTrip
Reverse
Wipro
school-programming
CBSE - Class 11
DSA
Valid Parentheses in an Expression
Last Updated: 13 January 2025
Given a stringsrepresenting an expression containing various types of brackets: {}, (), and [], the task is to determine whether the bracket
...read more
Strings
Amazon
Oracle
Walmart
Yatra.com
Snapdeal
Zoho
Hike
Stack
Wipro
Parentheses-Problems
DSA
Array Reverse - Complete Tutorial
Last Updated: 25 September 2024
Given an array arr[], the task is to reverse the array. Reversing an array means rearranging the elements such that the first element become
...read more
Arrays
Strings
Amazon
VMWare
MAQ Software
Moonfrog Labs
Infosys
Reverse
school-programming
CBSE - Class 11
DSA
Permutations of given String
Last Updated: 10 April 2025
Given a string s, the task is to return all permutations of a given string in lexicographically sorted order.Note: A permutation is the rear
...read more
Strings
Amazon
Samsung
Walmart
Cisco
Citrix
Snapdeal
Accolite
MAQ Software
Greedy
Backtracking
Mathematical
Combinatorial
OYO
permutation
Recursion
Apple
strings
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 !