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.6K+ 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
152+ articles
Java-String-Programs
148+ articles
strings
131+ posts
Recent Articles
Find the Smallest Greater Date with Same Digits
Last Updated: 18 August 2026
Given a date in the format dd mm yyyy, rearrange its digits to form a valid date that is greater than the given date. The new date must:Use exactly the same digits as the ...
read more
DSA
date-time-program
strings
Non-Repetitive String
Last Updated: 31 July 2026
Given a string s consisting of uppercase English letters, determine whether it is a non-repetitive string. A string is called non-repetitive if every occurrence of the sam...
read more
DSA
strings
Check if Any Common String Exists in Two Arrays
Last Updated: 26 July 2026
Given two arrays of strings s[] and t[] of sizes n and m, respectively, find if they share at least one common string.Examples:Input: s[] = ["cake", "pastry", "fish", "can...
read more
DSA
strings
Assign Short Codes in Stream of Words
Last Updated: 20 July 2026
A railway department is renaming several cities, and the corresponding railway station codes must also be updated.Given an array cities[] containing the names of n cities ...
read more
DSA
Trie
cpp-vector
Data Structures
strings
Distinct Characters In Sorted Manner
Last Updated: 18 July 2026
Given a string s, return a string containing all distinct characters from s in non-decreasing order, without using any sorting algorithm.Examples:Input: s = "abdbc"Output:...
read more
DSA
strings
set
DSA
Keypad typing
Last Updated: 10 July 2026
Given a string s consisting of lowercase English letters. Each letter corresponds to a number on a standard keypad, as shown in the figure. Replace every character in s wi...
read more
DSA
strings
DSA
Palindrome With K Insertions
Last Updated: 03 July 2026
Given a string s and an integer k, determine whether s can be converted into a palindrome using exactly k insertions. In a single insertion, any character may be inserted ...
read more
DSA
Algorithms-Dynamic Programming
strings
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
1
2
3
4
5
6
7
8
9
✕