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
How to Convert wstring to double in C++
Last Updated: 27 June 2024
In C++,std::wstringis a type of string where each character is of a wide character type.Converting wstring to a double in C++ can be a commo
...read more
C++
C++ Programs
cpp-strings
CPP Examples
C/C++ Program for String Search
Last Updated: 22 May 2024
C/C++ Program for Naive Pattern SearchingC/C++ Program for KMP AlgorithmC/C++ Program for Rabin-Karp AlgorithmC/C++ Program for A Naive Patt
...read more
C Language
C++
C-String
C Programs
C++ Programs
cpp-strings
C Strings Programs
C++ String Programs
Array of Pointers to Strings in C++
Last Updated: 21 March 2024
In C++, an array is a homogeneous collection of data that is stored in a contiguous memory location. We can store almost all types of data a
...read more
cpp-string
cpp-array
cpp-pointer
C++
C++ Programs
Picked
cpp-strings
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 Create a Random Alpha-Numeric String in C++?
Last Updated: 18 March 2024
Creating a random alpha-numeric string in C++ means generating random characters from the set of alphanumeric characters (i.e., ‘A’-‘Z
...read more
C++
C++ Programs
Picked
cpp-strings
cpp-random
CPP Examples
How to Split a C++ String into a Vector of Substrings?
Last Updated: 01 March 2024
In C++, splitting a string into a vector of substrings means we have to split the given string into a substring based on a given delimiter a
...read more
cpp-vector
C++
C++ Programs
Picked
cpp-strings
CPP Examples
How to Split a String by Multiple Delimiters in C++?
Last Updated: 22 February 2024
In C++, while working with string manipulation we may sometimes need to split a string into substrings based on multiple delimiters. In this
...read more
cpp-string
C++
C++ Programs
Picked
cpp-strings
C++ String Programs
CPP Examples
How to Do Case-Insensitive Search for a Substring in C++?
Last Updated: 21 February 2024
A substring of a string is a contiguous sequence of characters within that string. In simpler terms, a substring is a part of a larger strin
...read more
cpp-string
C++
C++ Programs
Picked
cpp-strings
CPP Examples
How to Convert an Integer to a String in C++?
Last Updated: 21 February 2024
Integer and String are the two data types in C++ programming languages. An integer is generally used to represent the whole numbers in the n
...read more
C++
C++ Programs
Picked
cpp-strings
CPP Examples
How to Access Individual Characters in a C++ String?
Last Updated: 21 February 2024
C++ has in its definition a way to represent asequence of characters as an object of the class. This class is called std:: string. The strin
...read more
C++
C++ Programs
Picked
cpp-strings
CPP Examples
How to Replace Text in a String Using Regex in C++?
Last Updated: 08 February 2024
Regular expressions or what we can call regex for short are sequences of symbols and characters that create a search pattern and help us to
...read more
C++
C++ Programs
Picked
CPP-regex
cpp-strings
CPP Examples
How to Dynamically Allocate Memory for an Array of Strings?
Last Updated: 07 February 2024
Dynamic memory and static memory are two types of memory allocation methods in C++ programming. Dynamic memory allows programmers to allocat
...read more
cpp-array
cpp-pointer
memory-management
C++
C++-new and delete
C++ Programs
Picked
cpp-strings
CPP Examples
Modify array of strings by replacing characters repeating in the same or remaining strings
Last Updated: 13 August 2021
Given an array of strings arr[] consisting of lowercase and uppercase characters only, the task is to modify the array by removing the chara
...read more
Arrays
Strings
Searching
Hash
Technical Scripter
array-rearrange
cpp-vector
C++
Data Structures
C Programs
C++ Programs
cpp-unordered_set
cpp-strings
Technical Scripter 2020
DSA
Find the winner of game of repeatedly removing the first character to empty given string
Last Updated: 09 June 2021
Given a positive integer N, representing the count of players playing the game and an array of strings arr[], consisting of the numeric stri
...read more
Strings
Queue
Mathematical
Game Theory
cpp-queue
cpp-strings
DSA
Longest Palindrome in a String formed by concatenating its prefix and suffix
Last Updated: 26 December 2022
Given a string str consisting of lowercase English letters, the task is to find the longest palindromic string T which satisfies the followi
...read more
Strings
Analysis of Algorithms
Pattern Searching
palindrome
substring
cpp-strings
Write From Home
DSA
Remove odd frequency characters from the string
Last Updated: 04 December 2023
Given string str of size N, the task is to remove all the characters from the string that have odd frequencies.Examples:Input: str = "geeksf
...read more
Strings
Hash
C++
Hash
C++ Programs
cpp-map
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 !