Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Strings
2.1K+ articles
Dynamic Programming
1.1K+ articles
Hash
831+ articles
frequency-counting
745+ articles
Pattern Searching
401+ articles
substring
358+ articles
Data Structures
150+ articles
Java-String-Programs
148+ articles
strings
124+ posts
Recent Articles
Popular Articles
Prefix and Suffix Pair Count
Last Updated: 19 March 2026
Given an array of strings arr[], count the number of pairs (i, j) such that i j and the string arr[i] is both a prefix and a suffix of the string arr[j].Examples:Input: a...
read more
DSA
strings
Conversion Between String, StringBuilder, and StringBuffer
Last Updated: 20 February 2026
In Java, String, StringBuilder, and StringBuffer are used to handle text data, but they differ in mutability and thread safety. Understanding how to convert between them i...
read more
Java
Java-StringBuilder
java-StringBuffer
strings
Maximum Non-Overlapping Odd Palindrome Sum
Last Updated: 31 July 2025
Given a string s consisting of lowercase English letters, find the maximum possible sum of the lengths of any two non-empty and non-overlapping palindromic substrings of o...
read more
DSA
strings
Minimize Difference
Last Updated: 24 July 2025
Given an array arr[] of strings, where each string represents a time in 24-hour format ("HH:MM:SS"), find the minimum absolute difference in seconds between any two time v...
read more
DSA
strings
ASCII Range Sum
Last Updated: 28 July 2025
Given a string s consisting of lowercase English letters, identify all characters whose first and last occurrences are at different positions.For each such character, comp...
read more
DSA
prefix-sum
strings
DSA
Commonly Asked Data Structure Interview Questions on Strings
Last Updated: 23 July 2025
Strings are essential data structures used to represent sequences of characters and are frequently encountered in coding interviews. Questions often focus on string manipu...
read more
Strings
DSA
Data Structures
strings
Check for Binary String
Last Updated: 27 February 2026
Given a string s, the task is to check if it is a binary string or not. A binary string is a string which only contains the characters '0' and '1'.Examples:Input: s = "010...
read more
Strings
DSA
strings
Concatenation of Two Strings
Last Updated: 07 March 2026
String concatenation is the process of joining two strings end-to-end to form a single string.ExamplesInput: s1 = "Hello", s2 = "World"Output: "HelloWorld"Explanation: Joi...
read more
Computer Science Fundamentals
strings
CSES Solutions - Letter Pair Move Game
Last Updated: 19 May 2024
There are 2n boxes in a line. Two adjacent boxes are empty, and all other boxes have a letter "A" or "B". Both letters appear in exactly n-1 boxes.Your task is to move the...
read more
DSA
BFS
strings
CSES Problems
Check string for all uppercase-lowercase or first uppercase and rest lowercase characters
Last Updated: 28 March 2024
Given a string S, the task is to check if all the characters in S are in lowercase, or all the characters are in uppercase or only the first character is in uppercase, and...
read more
Strings
DSA
strings
How to Convert a String to an Long in Java ?
Last Updated: 23 July 2025
In Java, String to Integer Conversion is not always effective as the size of the String can overpass Integer. In this article, we will learn the method provided by the Lon...
read more
Java
Java Programs
Picked
java-Long
Java-String-Programs
strings
Java Examples
Java Program to Capitalize the First Letter of Each Word in a String
Last Updated: 23 July 2025
In Java Programming, we can be able to capitalize the first letter of each word in the given String value by using toUpperCase(), toLowerCase(), and another one is substri...
read more
Java
Java Programs
Picked
Java-String-Programs
strings
Java Examples
How to Shuffle Characters in a String in Java?
Last Updated: 23 July 2025
In this article, we will learn how to shuffle characters in a String by using Java programming. For this, we have taken a String value as input and the method is available...
read more
Java
Java Programs
Picked
Java-Character
Java-String-Programs
strings
Java Examples
How to Remove Duplicates from a String in Java Using Regex ?
Last Updated: 23 July 2025
In Java programming, Regex (regular expressions) is a very important mechanism. It can be used to match patterns in strings. Regular expressions provide a short and simple...
read more
Java
Java Programs
Picked
Java-Strings
Java-String-Programs
strings
Java Examples
How to Find the Intersection of Two Strings in Java?
Last Updated: 23 July 2025
We know that the Strings are a collection of characters so if we want to find the intersection of two Strings the simple way is we can compare each character of the first ...
read more
Java
Java Programs
Picked
Java-Strings
strings
Java Examples
1
2
3
4
5
6
7
8
9