Tutorials
Courses
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
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Mathematical
7.8K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Searching
1.7K+ articles
Hash
1.3K+ articles
frequency-counting
745+ articles
binary-string
384+ articles
substring
358+ posts
Recent Articles
Popular Articles
Find number of contiguous Substrings with repeated patterns
Last Updated: 22 August 2023
Given a string str consisting of digits, the task is to find the number of contiguous substrings such that the substring can be rearranged into a repetition of some string...
read more
Strings
Bit Magic
DSA
substring
Remove all occurrences of a string t in string s using Boyer-Moore Algorithm
Last Updated: 31 July 2023
Given a string s and string t, the task is to remove all occurrences of a string t in a string s using the Boyer-Moore algorithm.Examples:Input: s = "ababaababa", t = "aba...
read more
Strings
Pattern Searching
DSA
String Duplicates
Data Structures
substring
strings
Longest Common Substring with max XOR
Last Updated: 04 October 2023
Given two strings s1 and s2, the task is to find the length of the longest common substring of s1 and s2 such that the XOR is maximum.Examples:Input: s1 = "79567", s2 = ...
read more
Strings
Bit Magic
DSA
Bitwise-XOR
Data Structures
substring
strings
Find length of repeating Substring
Last Updated: 14 August 2023
Given a string s and a positive integer K, the task is to find the length of the longest contiguous substring that appears at least K times in s.Examples:Input: s = "ababa...
read more
Strings
Hash
Picked
DSA
substring
Find the largest prime number in String
Last Updated: 23 October 2024
Given a string S, representing a large integer, the task is to return the largest-valued prime integer (as a string) that is a substring of the given string S.Note: A subs...
read more
Strings
DSA
Prime Number
substring
cpp-strings
Substrings: A Comprehensive Guide
Last Updated: 11 May 2024
Substrings are a fundamental concept in computer science and programming. They play a crucial role in various applications, from text manipulation to data processing. In t...
read more
Strings
Picked
DSA
substring
DSA-Blogs
Count Substrings with Frequencies Less than Maximum Digit
Last Updated: 31 December 2023
Given a string S of length N. Then your task is to find the count of substrings such that, the frequency of each digit in that substring must be less than the maximum digi...
read more
Mathematical
Geeks Premier League
DSA
number-digits
substring
Geeks Premier League 2023
Find the Index of a Substring in Python
Last Updated: 19 November 2024
Finding the position of a substring within a string is a common task in Python. In this article, we will explore some simple and commonly used methods to find the index of...
read more
Python
Python Programs
Picked
substring
How to Get Substring Items Within Arraylist in Java?
Last Updated: 02 February 2024
In Java, ArrayList is the pre-defined class of the Java collection framework, and it is part of java.util package. ArrayList can be used to add or remove an element dynami...
read more
Java
Java Programs
Picked
Java-ArrayList
substring
Extract Substrings From A List Into A List In Python
Last Updated: 16 February 2024
Python is renowned for its simplicity and versatility, making it a popular choice for various programming tasks. When working with lists, one common requirement is to extr...
read more
Python
Picked
substring
Extract List of Substrings in List of Strings in Python
Last Updated: 09 February 2024
Working with strings is a fundamental aspect of programming, and Python provides a plethora of methods to manipulate and extract substrings efficiently. When dealing with ...
read more
Python
Python Programs
Picked
substring
Create List of Substrings from List of Strings in Python
Last Updated: 23 February 2024
In Python, when we work with lists of words or phrases, we often need to break them into smaller pieces, called substrings. A substring is a contiguous sequence of charact...
read more
Python
Python Programs
Picked
substring
How to Find the Length of a Substring in a char Array?
Last Updated: 01 March 2024
In C++, a substring is a string inside another string that is the contiguous part of the string. In this article, we will learn how to find the length of a substring in a ...
read more
C++ Programs
C++
Picked
cpp-array
CPP Array and String
substring
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 in an array. In this article, ...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
substring
cpp-strings
CPP Examples
How to Compare Two Substrings in a Character Array in C++?
Last Updated: 22 March 2024
In C++, character arrays are used to store a sequence of characters also known as strings. A Substring is a continuous sequence of characters within a string. In this arti...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
substring
CPP Examples
1
2
3
4
...
24
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 !