EasyDelete consecutive same words in a sequenceProblem Statement the problem “Delete consecutive same words in a sequence” states that read more
HardText JustificationProblem Statement The problem “Text Justification” states that you are given a list s[ read more
EasyReverse individual wordsProblem Statement The problem “Reverse individual words” states that you are given a read more
MediumArrange given numbers to form the biggest numberProblem Statement Suppose you have an array of integers. The problem “Arrange given numbers read more
EasyReverse words in a stringProblem Statement “Reverse words in a string” states that you are given a string s of read more
EasyReverse a StringProblem Statement “Reverse a String” problem states that you are given a string s of read more
Shortest PalindromeIn the shortest palindrome problem, we have given a string s of length l. Add characters in front read more
Reverse BitsReverse bits of a given 32 bits unsigned integer. Example Input 43261596  read more
Edit DistanceIn the edit distance problem we have to find the minimum number of operations required to convert a read more
Substring With Concatenation Of All WordsIn substring with the concatenation of all words problem, we have given a string s and a list read more
Top K Frequent WordsIn top K frequent words problem, we have given a list of words and an integer k. Print k most read more
Expression Contains Redundant Bracket or NotGiven a string s containing an expression of operators, operands, and parenthesis. Find if the read more
Zigzag ConversionIn the Zigzag Conversion problem, we have given a string s of length n and an integer r read more
Valid PalindromeGiven a string s of length n. Write a program to find if the string is valid palindrome or not. If read more
Valid Parenthesis StringIn the valid parenthesis string problem we have given a string containing ‘(‘, read more
Fizz Buzz LeetcodeIn Fizz Buzz problem we have given a number n, print the string representation of numbers from 1 to read more
Next PermutationIn the next permutation problem we have given a word, find the lexicographically read more
Repeated Substring PatternIn repeated substring patterns we have given a string check if it can be constructed by taking a read more
Letter Case PermutationIn letter case permutation we have given a string consisting of alphabets and numbers only, each read more
Longest Common Prefix using SortingIn the Longest Common Prefix using Sorting problem we have given a set of strings, find the longest read more
Word BreakWord Break is a problem that beautifully illustrates a whole new concept. We have all heard of read more
Word PatternWe have all come across word patterns like “ABBA”, “AABB” and so on. We read more
Regular Expression MatchingIn the Regular Expression Matching problem we have given two strings one (let’s assume it x) read more
Reorganize StringIn Reorganize String problem we have given a string containing some characters “a-z” read more
String CompressionIn the String Compression problem, we have given an array a[ ] of type char. Compress it as the read more
Valid ParenthesesIn Valid Parentheses problem we have given a string containing just the characters ‘(‘, read more
Longest Common Prefix using TrieIn the Longest Common Prefix using Trie problem we have given a set of strings, find the longest read more
Valid NumberIn the Valid Number problem we have given a string, check if it can be interpreted into a valid read more
Find the Closest Palindrome numberProblem In Find the Closest Palindrome number problem we have given a number n. Find a number which read more
Count and SayCount and Say in which we have given a number N and we need to find the Nth term of the count and read more
Find unique character in a stringIn Find unique character in a string problem, we have given a string containing only lower case read more
Integer to RomanInteger to Roman conversion. We have given a number N and we need to print the Roman number of N. read more
Rabin Karp AlgorithmRabin Karp Algorithm used to find the pattern string in the given text string. There are so many read more
Isomorphic StringsIsomorphic Strings – Given two strings we need to check if for every occurrence of a read more
Perform String Shifts LeetcodeA shift is a process in which alphabets are incremented by 1 in their ASCII value. For the last read more
String comparison containing wildcardsIn String comparison containing wildcards problem, we have given two strings second string contains read more
Check whether strings are k distance apart or notGiven two strings and an integer k, write a function to check whether the given strings are k read more
Program to toggle all characters in a stringGiven a string, write a function to toggle all characters of the given string. Here toggle means read more
Check length of a string is equal to the number appended at its lastGiven a string that is appended with a number at last, write a function that checks whether the read more
Generate all binary strings without consecutive 1’sGiven an integer k, write a function to print all binary strings of size k with no consecutive read more
Check if all rows of a matrix are circular rotations of each otherGiven a matrix, write a function to find whether all rows are circular rotations of each other or read more
Sort a string according to another stringGiven two input strings, a pattern and a string. We need to sort the string according to the order read more
Check if string can become empty by recursively deleting given sub-stringCheck if the given input string can be deleted completely by deleting given input sub-string read more
Smallest palindrome after replacementGiven input string contains lower case alphabets characters and dots(.). We need to replace all read more
Check if string follows order of characters by a pattern or notCheck if characters in the given input string follows the same order as determined by characters read more
split-four-distinct-stringsCheck if the given input string can split into 4 strings such that each string is non-empty and read more
Even sub-string countIn the given input string of digits, find the count of substrings which when convert into integer read more
Reverse string without temporary variableWrite a function to reverse a string without using extra variable. Example Input string : read more
Recursive Palindrome checkWrite a recursive function to check if given string is palindrome or not. Examples Racecar – is a read more
Minimum number of characters to be removed to make a binary string alternateGiven a binary string, write a function that will find minimum number of characters that can be read more
Print all palindromic partitions of a stringGiven a string, write  a function to print all possible palindromic patitioning of s Example INPUT read more
Count of character pairs at same distance as in english alphabetsGiven a string, write a function that will print the number of pairs whose elements are at same read more
Minimum characters to be added at front to make string palindromeGiven a string, write a function to find the minimum characters to be added at front to make string read more
Convert a string that is repetition of a substring of length kGiven a string and legth k, write a function to check whether is it possible to convert it to a read more
Nth character in Concatenated Decimal stringGiven a string in which all decimals are concatenated , write a function to find the Nth character read more
Kth Non-repeating characterIn the given string, find the kth non-repeating character. Example Input string : read more
Compare two version numbersGiven two input strings, which are in form of version numbers. A version number looks like a.b.c.d read more
Remove minimum characters so that two strings become anagramsGiven two input strings, fins minimum number characters to be removed from these two strings such read more
Generate all binary strings from given patternThe given input string consists of 0, 1 and ? (wildcard char), we need to generate all possible read more
Print all possible ways to break a string in bracket formFor the give input string, find all possible ways to break the given string in bracket form. read more
Caesar CipherThe Caesar Cipher technique is one of the earliest technique of encryption. That is, Ex(x) = (x + read more
Longest common subsequence withpermutationsFind the longest string whose permutations are sub-sequences of given two strings. Output longest read more
Perfect reversible stringCheck that if reverses of all possible substrings of input string are present in string or not. If read more
Longest palindrome can be formed by removing or rearranging charactersFind the longest palindrome that can be constructed by removing or rearranging characters from the read more
Longest common prefix (word by word)In the given input set of strings, write a program to find the longest common prefix. Examples read more
Longest common prefix (Character by character)In the given input set of strings, write a program to find the longest common prefix. Examples: read more
Permutations (STL)Print all the permutations of the input string using STL functions. Example Input string : read more
Calculate sum of all numbers present in a stringGiven a string of alpha numeric characters, write a function that will calculate all the numbers read more
Longest Common Prefix (Using Divide and Conquer)Given a array of strings, write a function that will print the longest common prefix If there is no read more
Lower Case To Upper CaseGiven a string with only lower case letters, write a function that will print the same string but read more
Longest Common Prefix (Using Biary Search)Given a array of strings, write a function that will print the longest common prefix If there is no read more
Print shortest path to print a string on screenGiven screen containing aplhabets from A-Z and input string, by using remote we can go from one read more
Remove Extra Spaces from a stringGiven a string, write a function to remove all extra spaces from the given string Example INPUT s = read more
Change gender of a given stringGiven a string, write a function that will toggle all the gender specific words in the input string read more
Count number of substrings with k distinct characatersGiven a string(which has only lowercase allphabets) and a value k, write a function that will print read more
Removing spaces from a string using stringstreamGiven a string, write a function which uses stringstream to remove spaces from the given string read more
PANGRAM CHECKCheck if the given string is Pangram or not. Pangram : A sentence(string) containing every letter read more
Repeated subsequence of length 2 or moreIn the given string, find if there is any subsequence of length 2 0r more. The sub-sequences should read more
Palindrome permutations of a stringFor the given input string, print all the possible palindromes that can be generated using read more
Split a stringWrite a program to Split a given input string by any delimiter. Example a)  Input string : read more
1`s and 2`s complement of binary numberFor the given binary number, print its 1`s and 2`s complement. 1`s complement of a binary is read more
Longest Common ExtensionGiven a string s and some of the pairs (L,R), write a function that will output the length of the read more
Convert string1 to string2 in one editEdits 1.    Add a character. 2.    Delete a character. 3.    Change a character. find if read more
Find First non-repeating character in a stringIn the given stream of characters(string), find the first non-repeating character. Example Input read more
Remove recurring digits in a given numberGiven a numer which is represented in string, write a function that will remove recurring digits in read more
Recursively print all the sentences that can be formed from list of word listsGiven a list of word lists, write a functions to print all possible sentences one by one by taking read more
Online algorithm for checking palindrome in a streamGiven a stream of characters(charcaters are recieved one by one), write a function that will print read more
Check if two given strings are isomorphic to each otherGiven two strings s1 and s2, write a function that says whether the given strings are isomorphic or read more
Length of longest valid substringGiven a string which contains opnening and closing paranthesis, write a function that will find the read more
Program to add two binary digitsGiven two binary strings, write a function that print the sum of the giiven two binary strings. read more
Recursive Implementation of atoi()atoi() function takes an string(which is a number) as an argument and returns its value Example read more
Reverse a string without affecting special charactersGiven a string which contains special characters(such as %,&,*,^,$) and read more
Recursive function to do substring searchGiven two strings s1 and s2, write a recursive function that returns TRUE if s2 is present in s1 read more
Print Longest common subsequenceGiven two strings s1 and s2, write a function that will find the longest subsequence present in read more
Rotate string to get lexicographically minimum stringWrite a function to find lexicographically minimum string in a circular string(array). Example a) read more
Number of sub-strings which recursively add up to 9Given a string which represent a number, we need to write a function to find the number of read more
Palindrome string (number)Check whether the given string is palindrome or not. Given string is form of positive number. read more
Print all possible words from phone digitsGiven a string of numbers, each number represents a number on the QWERTY keyboards, texts and read more
Shortest Superstring ProblemGiven array of strings, write a function that will print the smallest string that contains each read more
Transform one string to another using minimum number of given operationsGiven two strings s1 and s2, write a function that will convert s1 to s2(if possible) by using only read more