String Data Structure
In this complete guide to String Data Structures, you will learn about the basics of string, how to get started with String, learning, strategy, resources, problems, and much more.
10
Chapters
1
Quizzes
78
Articles
64
Problems
Discover a smoother learning journey through our effortless roadmap
Start your journeyChapters
Getting Started with String
What is String - Definition & Meaning
Basic String Operations with Implementation
Iterate over characters of a string in C++
Iterate Over the Characters of a String in Java
Iterate over characters of a string in Python
Storage for Strings in C
Storage of String in Java
Applications, Advantages and Disadvantages of String
Substring of String
Get a Substring in C
Number of substrings of one string present in other
Find the count of palindromic sub-string of a string in its sorted form
Check if a string contains a palindromic sub-string of even length
Check if the given string is K-periodic
Longest sub string of 0's in a binary string which is repeated K times
Find the longest substring with k unique characters in a given string
Shortest Palindromic Substring
Count of K-size substrings having palindromic permutations
Maximize partitions such that no two substrings have any common character
Count of substrings having all distinct characters
Smallest String consisting of a String S exactly K times as a Substring
Check if a String contains Anagrams of length K which does not contain the character X
Check if a Palindromic String can be formed by concatenating Substrings of two given Strings
Minimum size substring to be removed to make a given string palindromic
Count ways to split a Binary String into three substrings having equal count of zeros
Count of substrings of a string containing another given string as a substring
Longest substring where all the characters appear at least K times | Set 3
Subsequence of String
Print all subsequences of a string
Check if two same sub-sequences exist in a string or not
Minimum number of palindromic subsequences to be removed to empty a binary string
Find largest word in dictionary by deleting some characters of given string
Longest Common Anagram Subsequence
Find the lexicographically largest palindromic Subsequence of a String
Maximum number of removals of given subsequence from a string
Longest subsequence with at least one character appearing in every string
Distinct strings such that they contains given strings as sub-sequences
Smallest Palindromic Subsequence of Even Length in Range [L, R]
Minimum number of subsequences required to convert one string to another
Longest Palindromic Subsequence of two distinct characters
Longest subsequence with different adjacent characters
String Searching
Pattern Searching
Problems on Pattern Searching
Easy Problems on String
String Reverse in C/C++/Java/Python/JavaScript
Reverse words in a string
Program to count occurrence of a given character in a string
Convert characters of a string to opposite case
Program to count vowels in a string (Iterative and Recursive)
Check if a number is Palindrome
Remove duplicates from a string
Count words in a given string
Check if a string is substring of another
Check whether two Strings are anagram of each other
Remove minimum number of characters so that two strings become anagram
Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character
Capitalize the first and last character of each word in a string
Check if given strings are rotations of each other or not
Medium Problems on String
Print all palindrome permutations of a string
Sum of two large numbers
Multiply Large Numbers represented as Strings
Longest Valid Parentheses Substring
Longest substring without repeating characters
Find the longest substring with k unique characters in a given string
Smallest window that contains all characters of string itself
Minimum rotations required to get the same string
Hard Problems on String
Palindrome Substring Queries
Minimum number of bracket reversals needed to make an expression balanced
Number of distinct words of size N with at most K contiguous vowels
Longest substring whose characters can be rearranged to form a Palindrome
Find all distinct palindromic sub-strings of a given string
About the Complete Guide to String
The Complete Guide to Strings is a comprehensive resource that covers everything you need to know about working with string data in programming. From understanding what strings are to advanced string manipulation techniques, this guide offers insights into their importance across various applications, such as text processing, user input, and data analysis. Whether you're a beginner or an experienced developer, this guide will help you master the art of handling strings effectively.
Basic terminologies of string
While learning about String Data Structures in this Complete Guide on String, you will come across some common terms that will be used multiple times. Some of these terms are:
- String Index: In an string, characters are identified by their indexes. String index starts from 0.
- String element: Characters are items stored in an string and can be accessed by their index
- String Length: The length of an string is determined by the number of characters it can contain.
Why String Data Structures is needed?
The String data structure is essential for handling text-based data in the field of programming, user input, file content, and more. The vast availability of String manipulation functions, such as joining, searching, formatting, etc, in every programming language makes it one of the most used Data Structure. Some of imporatant field where String Data Structure is used are text processing, user interfaces, data analysis, networking, and Web Development.
Reviews
Abhishek sirohi
The roadmap provided here is a very good start to understanding the basics and covers all types of DSA concepts. I am completely satisfied with this roadmap.
Ayan Prakash
There is a clear explanation of all topics covered in this roadmap, and the practice problems that are provided are very helpful to help implement the concepts learned. Kudos to GeeksforGeeks!!!
Nupur Bisht
There is no doubt that GeeksforGeeks has covered all the important topics in the most effective way. As a result of this roadmap, I am placed in very good company.
Tanisha Singh
In my opinion, the roadmap of GFG is very well structured. It's awesome how they arranged the readings. I found it to be very helpful.
FAQ's
How can I start this course?
You just need to click on the button that says START YOUR JOURNEY, and that's it. You will be taken to your first chapter.
Is this a language-specific course?
No. Majority topics in the course include implementations in popular programming languages like C, C++, Java, Python, C#, and Javascript.
Does the course include programming questions?
Yes, the course focuses on DS & Algo with a mix of theoretical topics and programming questions.
Can I learn DSA live?
Yes, we do have LIVE batched for DSA. You may call us on our toll-free number: +91-7838223507 or Drop us an email at courses@geeksforgeeks.org for any queries.

