String Manipulation Techniques Last Updated : 23 Aug, 2024 Comments Improve Suggest changes Like Article Like Report 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 More infoAdvertise with us Next Article String Manipulation Techniques H harendrakumar123 Follow Improve Article Tags : Strings DSA Practice Tags : Strings Similar Reads Algorithms Design Techniques What is an algorithm? An Algorithm is a procedure to solve a particular problem in a finite number of steps for a finite-sized input. The algorithms can be classified in various ways. They are: Implementation MethodDesign MethodDesign ApproachesOther ClassificationsIn this article, the different alg 10 min read Transform and Conquer Technique The Transform and conquer technique is a way of solving problems by breaking them down into smaller subproblems, solving the smaller subproblems, and then combining the solutions to the subproblems to solve the original problem. This technique can be used to solve problems in many different areas, i 5 min read Optimization techniques for Gradient Descent Gradient Descent is a widely used optimization algorithm for machine learning models. However, there are several optimization techniques that can be used to improve the performance of Gradient Descent. Here are some of the most popular optimization techniques for Gradient Descent: Learning Rate Sche 4 min read Basic Algorithm Techniques Not Taught in Academics We generally study most of the algorithmic techniques in academics like Searching, Sorting, Dynamic Programming, Greedy Algorithms, Divide and Conquer, Backtracking, etc. But below techniques are generally not taught and used a lot to solve questions in interviews and competitive programming. Prefix 3 min read Most important type of Algorithms What is an Algorithm?An algorithm is a step-by-step procedure to solve a problem. A good algorithm should be optimized in terms of time and space. Different types of problems require different types of algorithmic techniques to be solved in the most optimized manner. There are many types of algorith 4 min read Like