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
C++
4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
substring
340+ articles
cpp-string
140+ articles
cpp-strings
59 posts
Popular Articles
Recent Articles
Vector of Strings in C++
Last Updated: 23 October 2024
In C++, a vector of strings is a std::vector container that stores multiple strings. It is useful when you need to store a collection of str
...read more
STL
cpp-vector
C++
cpp-strings
How to Convert String to Date in C++?
Last Updated: 22 March 2024
In C++, we generally store the date and time data in the form of the object of type std::tm. Sometimes, this data is stored inside a string
...read more
cpp-string
C++
date-time-program
C++ Programs
cpp-strings
Case-Insensitive String Comparison in C++
Last Updated: 18 March 2024
In C++, strings are sequences of characters that are used to store text data which can be in both uppercase and lowercase format. In this ar
...read more
Strings
C++-Misc C++
C++ Programs
Picked
cpp-strings
C Pattern Programs
CPP Examples
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
substring
340+ articles
cpp-string
140+ articles
How to Add Leading Zeros to a C++ String?
Last Updated: 05 March 2024
In C++, a string data structure is used to store the sequence of characters. These characters can be letters, symbols, or numbers. In this a
...read more
C++
C++ Programs
Picked
cpp-strings
CPP Examples
How to Split a String into an Array in C++?
Last Updated: 04 March 2024
In C++, splitting a string into an array of substrings means we have to parse the given string based on a delimiter and store each substring
...read more
cpp-string
cpp-array
C++
C++ Programs
Picked
substring
cpp-strings
CPP Examples
How to Convert Hex String to Byte Array in C++?
Last Updated: 04 March 2024
A Hex String is a combination of thedigits 0-9andcharacters A-F and a byte array is an array used to storebytedata types only. The default v
...read more
cpp-array
C++
C++ Programs
Picked
cpp-strings
CPP Examples
STL Ropes in C++
Last Updated: 03 November 2022
Ropes are scalable string implementation. They are designed for efficient operation that involves the string as a whole. Operations such as
...read more
Strings
Advanced Data Structure
cpp-string
Data Structures
cpp-strings-library
C++ Programs
cpp-strings
DSA
Print all strings from given array that can be typed using keys from a single row of a QWERTY keyboard
Last Updated: 28 December 2022
Given an array of strings arr[], consisting of strings made up of lowercase and uppercase letters, the task is to print all the strings from
...read more
Arrays
Strings
Searching
Hash
interview-preparation
cpp-unordered_map
cpp-strings
DSA
Minimum moves required to type a word in QWERTY based keyboard
Last Updated: 13 December 2022
Given a string S consisting of only lowercase English letters. The task is to find the minimum number of times of finger moves to type the g
...read more
Arrays
Misc
Strings
Searching
School Programming
cpp-strings
DSA
Print all the non-repeating words from the two given sentences
Last Updated: 20 December 2022
Given two strings A and B, the task is to print all the non-repeating words out of the two given sentences.Examples:Input: A = "I have a blu
...read more
Strings
C++ Programs
cpp-strings
DSA
Check if expression contains redundant bracket or not | Set 2
Last Updated: 22 December 2022
Given a string of balanced expressions, find if it contains a redundant parenthesis or not. A set of parenthesis is redundant if the same su
...read more
Strings
cpp-strings
DSA
Check whether two strings are anagrams of each other using unordered_map in C++
Last Updated: 24 July 2022
Write a function to check whether two given strings are an Anagram of each other or not. An anagram of a string is another string that conta
...read more
Strings
anagram
cpp-unordered_map
cpp-strings
DSA
Find distinct characters in distinct substrings of a string
Last Updated: 07 September 2021
Given a string str, the task is to find the count of distinct characters in all the distinct sub-strings of the given string.Examples:Input:
...read more
Strings
substring
cpp-strings
cpp-map-functions
DSA
Remove duplicates from a string using STL in C++
Last Updated: 28 May 2019
Given a string S, remove duplicates in this string using STL in C++Examples:Input: Geeks for geeksOutput: GefgkorsInput: aaaaabbbbbbOutput:
...read more
STL
C++
cpp-strings
Find the longest sub-string which is prefix, suffix and also present inside the string
Last Updated: 09 June 2022
Given string str. The task is to find the longest sub-string which is a prefix, a suffix, and a sub-string of the given string, str. If no s
...read more
Strings
Mathematical
palindrome
Data Structures
cpp-strings
DSA
First
1
2
3
4
>>
Last
First
1
2
3
4
>>
Last
First
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 !