Card image cap
C++ Program to Generate all the Rotations of a String

We will discuss an easy approach to generate all the rotations of a string. Approach is simple we will concatenate the given string with itself and then we will be able to generate all the rotations. C++ Program to generate all the rotations of a given string is given below along with its algorithm.

Card image cap
C++ Program to Reverse the Vowels of a String

C++ Program to reverse the vowels of a string is given below. Approach is simple, we will use two pointer approach. First we will initialize a counter at the start of the string and the other one is at the end of the string. Time complexity of the program given below is O(n) and space complexity is O(1).

Card image cap
Adding Reversed Number (ADDREV) in C++ - SPOJ
C++ Program for the adding reversed number problem of spoj is given below. The given solution is accepted by spoj judge.

PROGRAM:



Card image cap
Anti-Blot System (ABSYS) Program in C++ - Spoj
C++ Program for the anti-blot system problem of spoj is given below. The given solution is accepted by spoj judge.

PROGRAM:
 

Card image cap
Python program to get the frequency of characters in a string

Python Program to calculate the frequency of the character of the given string is given below. In this Program we used python dictionaries where key is the character of string and its value is the occurrence of that character in the given string.

Card image cap
C++ Program to reverse the words in a given string

C++ Program to reverse the words in a given string is given below. This question has been asked many times in interview questions.

Card image cap
C Program to Convert Infix Expression into Postfix

C Program to convert infix expression into postfix expression along with algorithm is given below. Conversion of Infix expression to postfix expression is a classical example of use of Data Structure Stack.

Card image cap
Program to check if two strings are anagram or not using STL

Two strings are said to be anagram is one string can be formed by rearranging the characters of the second string and vice versa. C++ Program is given below to check is two strings are anagram are not.

Card image cap
C++ Program to find the first repeated character in the string using STL

C++ Program to find the first repeated character in the string is given below. In this i used and unordered_map to store the count of the every character of the string..