Skip to content

Tag Archives: C-String-Question

Prerequisite: How to dynamically allocate a 2D array in C? Double pointer: A pointer pointing to another pointer is known as a Double pointer. To… Read More
Given a string str. The string may contain lower-case letters, special characters, digits or even white-spaces. The task is to check, whether only the letters… Read More
Given three strings(without spaces). The task is to print the new string after modifying the three given string as follows: Replace all the vowels present… Read More
Given a string containing only two characters i.e. R and K (like RRKRRKKKKK). The task is to find the maximum value of N for a… Read More
Given a string str. The task is to check whether it is a binary string or not. Examples: Input: str = "01010101010" Output: Yes Input:… Read More
Given N strings. Find the longest possible subsequence from each of these N strings such that they are anagram to each other. The task is… Read More
Given a string str, print of all the combinations of a string in lexicographical order. Examples: Input: str = "ABC" Output: A AB ABC AC… Read More
Given a string str consisting of lowercase letters only and an integer k, the task is to replace every character of the given string by… Read More
Given a large number N and the task is to check if any permutation of a large number is divisible by 8. Examples: Input: N… Read More
Given a string, the task is to check if there exist two equal sub-sequences in the given string. Two sub-sequences are said to be equal… Read More
Given a string containing lowercase characters. The task is to print the maximum occurring character in the input string. If 2 or more characters appear… Read More
Given two bracket sequences S1 and S2 consisting of ‘(‘ and ‘)’. The task is to check if the string obtained by concatenating both the… Read More
Given a string of characters. The task is to write a program to print the characters of this string in sorted order using stack.  Examples:  … Read More
Given a string str of lowercase characters. The task is to count the number of deletions required to reduce the string to its shortest length.… Read More
Given a number num as a string and a number N. The task is to write a program which converts the given number num to… Read More