## Area of a Regular Pentagram

Given a Pentagram and it’s inner side length(d). The task is find out area of Pentagram. The Pentagram is a five-pointed star that is formed… Read More »

- Reach the numbers by making jumps of two given lengths
- Iterative Letter Combinations of a Phone Number
- Zig-Zag traversal of a Binary Tree using Recursion
- Number of pairs whose sum is a power of 2
- Passing and Returning Objects in C++
- Program to print Step Pattern
- Find Maximum and Minimum element in a Set in C++ STL
- Clockwise Spiral Traversal of Binary Tree
- TCS Coding Practice Question | Check Armstrong Number
- Program to find the kth character after decrypting a string
- Iterative Boundary traversal of Complete Binary tree
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- How to find the minimum and maximum element of a Vector using STL in C++?
- Programs for printing pyramid patterns using recursion
- Split a string in equal parts such that all parts are palindromes
- Shortest path on a Square
- TCS Coding Practice Question | Check Odd or Even
- Finding Floor and Ceil of a Sorted Array using C++ STL
- Determine the count of Leaf nodes in an N-ary tree
- Count the number of 1's and 0's in a binary array using STL in C++ ?
- Sum of minimum elements of all possible sub-arrays of an array
- Find the repeating and the missing number using two equations
- Number of Hamiltonian cycle
- Array element with minimum sum of absolute differences
- Sum of maximum elements of all possible sub-arrays of an array
- Generics in C++
- How to convert a class to another class type in C++?
- Recursive Program for Binary to Decimal
- Maximum sub-tree sum in a Binary Tree such that the sub-tree is also a BST
- Program to find LCM of two Fibonnaci Numbers

Given a Pentagram and it’s inner side length(d). The task is find out area of Pentagram. The Pentagram is a five-pointed star that is formed… Read More »

In Probability, Discrete Uniform Distribution Function refers to the distribution with constant probability for discrete values over a range and zero probability outside the range.… Read More »

The Boost String Algorithms Library provides a generic implementation of string-related algorithms which are missing in STL. It is an extension to the algorithms library… Read More »

Given an unsorted array, the task is to remove the duplicate elements from the array using STL in C++ Examples: Input: arr[] = {1, 2,… Read More »

The is_sorted() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/is_sorted.hpp’ which tests if the given sequence is sorted or not according to… Read More »

Given a sorted array, the task is to remove the duplicate elements from the array using STL in C++ Examples: Input: arr[] = {2, 2,… Read More »

The is_partitioned() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/is_partitioned.hpp’ which tests if the given sequence is partioned according to the given… Read More »

The one_of_equal() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/one_of.hpp’ which tests if exactly one of the elements of a sequence against… Read More »

The none_of() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/none_of.hpp’ which tests all the elements of a sequence and returns true if… Read More »

The one_of() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/one_of.hpp’ which tests the elements of a sequence and returns true if exactly… Read More »

The all_of() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/all_of.hpp’ which tests all the elements of a sequence and returns true if… Read More »

We can use Exception handling with class too. Even we can throw an exception of user defined class types. For throwing an exception of say… Read More »

Given that person A takes a days to do a certain piece of work while person B takes b days to do the same work.… Read More »

Given a string S, remove all the consecutive duplicates in this string using STL in C++ Examples: Input: Geeks for geeks Output: Geks for geks… Read More »

A certain number of men can do a certain piece of work in D days. If there were m more men engaged in the work… Read More »