## How to Iterate through a String word by word in C++

Given a String comprising of many words separated by space, the task is to iterate over these words of the string in C++. Example: Input:… Read More »

- Count substrings that contain all vowels | SET 2
- Find the longest string that can be made up of other strings from the array
- Maximum length of subarray such that sum of the subarray is even
- Remove duplicates from an unsorted array using STL in C++
- Print the path between any two nodes of a tree | DFS
- Remove duplicates from a sorted array using STL in C++
- Remove all consecutive duplicates from a string using STL in C++
- Number of triangles formed by joining vertices of n-sided polygon with one side common
- Find the Deepest Node in a Binary Tree Using Queue STL - SET 2
- Remove first adjacent pairs of similar characters until possible
- Left rotation of an array using vectors in C++
- Color all boxes in line such that every M consecutive boxes are unique
- C++ program to Convert a Matrix to Sparse Matrix
- Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i
- C++ Boost String Algorithms Library
- Check if the Matrix satisfies the given conditions
- User-defined Custom Exception with class in C++
- Check if two given Circles are Orthogonal or not
- Number of positions such that adding K to the element is greater than sum of all other elements
- Find number of candidates in the Exam
- Draw an Ellipse rotating over a Circle in C++ graphics
- boost::algorithm::is_sorted() in C++ library
- Area of a Regular Pentagram
- Check whether Quadrilateral is valid or not if angles are given
- Implementing Multidimensional Map in C++
- Flatten Binary Tree in order of Zig Zag traversal
- How to erase an element from a vector using erase() and reverse_iterator?
- How to swap Keys with Values of a Map in C++?
- Program to find the number of men initially
- std::uniform_int_distribution class in C++

Given a String comprising of many words separated by space, the task is to iterate over these words of the string in C++. Example: Input:… Read More »

Public All the class members declared under public will be available to everyone. The data members and member functions declared public can be accessed by… Read More »

The math.h header contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. In order to use… Read More »

Given a vector, the task is to erase an element from this vector using erase() and reverse_iterator. Example: Input: vector = {1, 4, 7, 10,… Read More »

Given are two circles with their centres C1(x1, y1) and C2(x2, y2) and radius r1 and r2, the task is to check if both the… Read More »

Given a number n, the task is to write a program in C++ to print the n-terms of Fibonacci Series using a Class template The… Read More »

Prerequisite: Disk Scheduling Algorithms Given an array of disk track numbers and initial head position, our task is to find the total number of seek… Read More »

Given N boxes that are kept in a straight line and M colors such that M ≤ N. The position of the boxes cannot be… Read More »

Given a matrix mat[][], the task is to check whether the matrix is valid or not. A valid matrix is the matrix that satisfies the… Read More »

Given an integer N, the task is to find the summation of the harmonic series . Examples: Input: N = 5 Output: 10 floor(3/1) +… Read More »

Given a word str, the task is to print the alphabets of this word using * pattern. Examples: Input: GFG Output: ****** * * *… Read More »

Given the last rank ‘L’ and number of candidates at the last rank ‘T’, the task is to find the total number of candidates in… Read More »

C++ helps you to format the I/O operations like determining the number of digits to be displayed after the decimal point, specifying number base etc.… Read More »

Given an array arr[] of integers and another integer D, the task is to perform D left rotations on the array and print the modified… Read More »

Given a matrix with most of its elements as 0, convert this matrix to sparse matrix in C++ Examples: Input: Matrix: 0 1 0 0… Read More »