## Form the largest palindromic number using atmost two swaps

Given a non-negative palindromic number num containing n number of digits. The problem is to apply at most two swap operations on the number num… Read More »

Given a non-negative palindromic number num containing n number of digits. The problem is to apply at most two swap operations on the number num… Read More »

Given a string and the task is to count vowels, consonant, digits and special character in string. Special character also contains the white space. Examples:… Read More »

Given a string and a limit k, find lexicographically next word which contains characters from a set of first K letters of the English alphabet… Read More »

Given two strings str1 and str2, check if str2 can be formed from str1 Example : Input : str1 = geekforgeeks, str2 = geeks Output… Read More »

Given a string str with uppercase, lowercase and special characters. The input string is to end with either a space or a dot. The problem… Read More »

We are given a sentence of english language(can also contain digits), we need to compute and print the sum of ASCII values of characters of… Read More »

Given a string S, c1 and c2. Replace character c1 with c2 and c2 with c1. Examples: Input : str = ‘grrksfoegrrks’ c1 = e,… Read More »

Given a 26 letter character set, which is equivalent to character set of English alphabet i.e. (abcd….xyz) and act as a relation. We are also… Read More »

Given a string s and a positive integer k. You need to encrypt the given string such that each substring of size k is represent… Read More »

Given a number N and its radix base R, find whether its valid or not according to its radix base. Find valid/invalid number for any… Read More »

Given two strings ‘X’ and ‘Y’, print the longest common sub-string. Examples: Input : X = “GeeksforGeeks”, Y = “GeeksQuiz” Output : Geeks Input :… Read More »

Given a robot which can only move in four directions, UP(U), DOWN(D), LEFT(L), RIGHT(R). Given a string consisting of instructions to move. Output the co-ordinates… Read More »

Given a very large number N, we need to count the total ways such that if we divide the number into two parts a and… Read More »

Given two strings A and B. The task is to count the number of ways to insert a character in string A to increase the… Read More »

ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character… Read More »