VOOZH
about
URL: https://www.geeksforgeeks.org/dsa/string-manipulation-techniques/
⇱ String Manipulation Techniques - GeeksforGeeks
👁 geeksforgeeks
Courses
Tutorials
Interview Prep
DSA Tutorial
Interview Questions
Quizzes
Must Do
Advanced DSA
System Design
Aptitude
Puzzles
Interview Corner
DSA Python
String Manipulation Techniques
Last Updated :
23 Jul, 2025
Recent articles on String !
Word Wrap problem ( Space optimized solution )
Form minimum number from given sequence
Maximum number of characters between any two same character in a string
Print shortest path to print a string on screen
Minimum number of stops from given path
Check whether second string can be formed from characters of first string
Mirror characters of a string
Find words which are greater than given length k
Find last index of a character in a string
Find position of the given number among the numbers made of 4 and 7
Find winner of an election where votes are represented as candidate names
Compare Version Numbers with large inputs allowed
Possibility of moving out of maze
Possibility of a word from a given set of characters
Find the arrangement of queue at given time
Program to generate all possible valid IP addresses from given string
Program to validate an IP address
Program to check for a Valid IMEI Number
Decode a median string to the original string
Decode a string recursively encoded as count followed by substring
Minimal operations to make a number magical
Program to check for ISBN
Program for credit card number validation
Maximize a number considering permutations with values smaller than limit
Find if a string starts and ends with another given string
Program to build DFA that starts and end with ‘a’ from input (a, b)
Make a string from another by deletion and rearrangement of characters
Create a new string by alternately combining the characters of two halves of the string in reverse
Morse Code Implementation
Tribonacci Word
Find numbers of balancing positions in string
Program to check if first and the last characters of string are equal
Minimum rooms for m events of n batches with given schedule
Simplify the directory path (Unix like)
Program for longest common directory path
Merge two strings in chunks of given size
Minimal moves to form a string by adding characters or appending string itself
Remove the forbidden strings
Strong Password Suggester Program
Program to check Strength of Password
Program for length of the longest word in a sentence
Check if a string is Isogram or not
Find all strings formed from characters mapped to digits of a number
Write a program to print all permutations of a given string
Print list items containing all characters of a given word
Print all valid words that are possible using Characters of Array
Run Length Encoding
Print all the duplicates in the input string
Recursively remove all adjacent duplicates
Remove all duplicates from a given string
Remove three consecutive duplicates from string
Efficiently check if a string has duplicates without using any additional data structure
Remove “b” and “ac” from a given string
Remove all characters other than alphabets from string
Program to extract words from a given String
String matching where one string contains wildcard characters
Find if an array contains a string with one mismatch
Consecutive sequenced numbers in a string
Print all interleavings of given two strings
Dynamic Programming | Set 33 (Find if a string is interleaved of two other strings)
Find Excel column name from a given column number
Find Excel column number from column title
Print all possible words from phone digits
Mobile Numeric Keypad Problem
Recursively print all sentences that can be formed from list of word lists
Position of robot after given movements
Check if a given sequence of moves for a robot is circular or not
Function to find Number of customers who could not get a computer
Determine if a string has all Unique Characters
Minimize number of unique characters in string
All possible strings of any length that can be formed from a given string
Check a given sentence for a given set of simple grammer rules
Rearrange a string so that all same characters become d distance away
Check if edit distance between two strings is one
Hamming Distance between two strings
Check whether Strings are k distance apart or not
Recursive Implementation of atoi()
Write your own atoi()
Write your own strcmp that ignores cases
Check if two given strings are isomorphic to each other
Print string of odd length in ‘X’ format
Sorting array with conditional swapping
Check if characters of one string can be swapped to form other
Form the smallest number using at most one swap operation
Largest even number possible by using one swap operation in given number
Next higher number using atmost one swap operation
Interchanging first and second halves of stings
All combinations of strings that can be used to dial a number
Alphanumeric Abbreviations of a String
Look-and-Say Sequence
Build Lowest Number by Removing n digits from a given number
Find the Number which contain the digit d
Pairs of complete strings in two sets of strings
Program to toggle all characters in a string
Change gender of a given string
Ropes Data Structure (Fast String Concatenation)
Number of pairs with Pandigital Concatenation
Pairs whose concatenation contain all digits
Nth character in Concatenated Decimal String
Print Concatenation of Zig-Zag String in ‘n’ Rows
Group Shifted String
String with additive sequence
Print consecutive characters together in a line
Program for length of a string using recursion
Check length of a string is equal to the number appended at its last
Sums of ASCII values of each word in a sentence
Program to find the largest and smallest ASCII valued characters in a string
Print all funny words in a string
Prime String
Roll the characters of string
Perfect Square String
Find the missing number in a string of numbers with no separator
Missing Permutations in a list
Program to replace a word with asterisks in a sentence
Meta Strings (Check if two strings can become same after a swap in one string)
Least number of manipulations needed to ensure two strings have identical characters
Minimum move to end operations to make all strings equal
Minimum Cost To Make Two Strings Identical
Minimum cost to make two strings identical by deleting the digits
Minimum cost to construct a string
Quick Links :
'Practice Problems' on Strings
'Quizzes' on Strings
Comment
Article Tags:
Article Tags:
Strings
DSA
Explore
DSA Fundamentals
Logic Building Problems
2 min read
Analysis of Algorithms
1 min read
Data Structures
Array
3 min read
String
2 min read
Hashing
2 min read
Linked List
3 min read
Stack
2 min read
Queue
2 min read
Tree
2 min read
Graph
3 min read
Algorithms
Searching Algorithms
2 min read
Sorting Algorithms
3 min read
Introduction to Recursion
15 min read
Greedy Algorithms
3 min read
Graph Algorithms
3 min read
Dynamic Programming
2 min read
Bitwise Algorithms
4 min read
Advanced
Segment Tree
2 min read
Binary Indexed Tree
12 min read
Trie Data Structure
15+ min read
Square Root (Sqrt) Decomposition Algorithm
15+ min read
Interview Preparation
Interview Corner
2 min read
GFG 160
2 min read
Coding Practice
1 min read
POTD
2 min read
Courses
Data Structures and Algorithms Course
2 min read
DSA and System Design Course
2 min read