# Category Archives: C++ Programs (adsbygoogle = window.adsbygoogle || []).push({});

## Minimum number of given operation required to convert n to m

Given two integers n and m, in a single operation n can be multiplied by either 2 or 3. The task is to convert n… Read More »

## How to find the minimum and maximum element of a Vector using STL in C++?

Given a vector, find the minimum and maximum element of this vector using STL in C++. Example: Input: {1, 45, 54, 71, 76, 12} Output:… Read More »

## How to find the minimum and maximum element of an Array using STL in C++?

Given an array arr[], find the minimum and maximum element of this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71,… Read More »

## Program to find the time after K minutes from given time

You are given a time T in 24-hour format (hh:mm) and a positive integer K, you have to tell the time after K minutes in… Read More »

## Program to find the kth character after decrypting a string

Given a string str consisting of characters and numbers and an integer k, the task is to decrypt the string and the return the kth… Read More »

## How to find the sum of elements of an Array using STL in C++?

Given an array arr[], find the sum of the elements of this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71,… Read More »

## How to join two Arrays using STL in C++?

Given two arrays, join these two arrays using STL in C++. Example: Input: arr1[] = {1, 45, 54, 71, 76, 12}, arr2[] = {1, 7,… Read More »

## Program to check if an Array is Palindrome or not using STL in C++

Given an array, the task is to determine whether an array is a palindrome or not, using STL in C++. Examples: Input: arr[] = {3,… Read More »

## How to reverse an Array using STL in C++?

Given an array arr[], reverse this array using STL in C++. Example: Input: arr[] = {1, 45, 54, 71, 76, 12} Output: {12, 76, 71,… Read More »

## How to sort an Array in descending order using STL in C++?

Given an array arr[], sort this array in descending order using STL in C++. Example: Input: arr[] = {1, 45, 54, 71, 76, 12} Output:… Read More »

## Programs for printing pyramid patterns using recursion

This article is aimed at giving a recursive implementation for pattern printing. Simple triangle pattern: C++ filter_none edit close play_arrow link brightness_4 code // C++… Read More »

## Clockwise Spiral Traversal of Binary Tree | Set – 2

Given a Binary Tree. The task is to print the circular clockwise spiral order traversal of the given binary tree. Examples: Input : 1 /… Read More »

## Reverse Anti Clockwise Spiral Traversal of a Binary Tree

Given a binary tree, the task is to print the nodes of the tree in a reverse anti-clockwise spiral manner. Examples: Input : 1 /… Read More »

## Print leaf nodes in binary tree from left to right using one stack

Given a binary tree, the task is to print all leaf nodes of the given binary tree from left to right. That is, the nodes… Read More »

## Minimum and maximum node that lies in the path connecting two nodes in a Binary Tree

Given a binary tree and two nodes a and b, the task is to print the minimum and the maximum node value that lies in… Read More »