Skip to content

Category Archives: C++

Prerequisite: List in C++ Removing elements is a necessary task for any container. Removing elements from a list is an easy task as we have… Read More
An array is the collection of similar data-type stored in continuous memory. And when we are storing an array inside an array it is called… Read More
The static keyword is used with a variable to make the memory of the variable static once a static variable is declared its memory can’t… Read More
Prerequisite: Set in C++ STL Vector in C++ Containers are meant to be storing elements according to the properties they have, but in some cases,… Read More
Prerequisite: Deque in C++ Deque or Double Ended Queue is a generalized version of the Queue data structure that allows insert and deletion at both… Read More
typedef keyword in C++ is used for aliasing existing data types, user-defined data types, and pointers to a more meaningful name. Typedefs allow you to… Read More
Given an array, the task is to find average of that array. Average is the sum of array elements divided by the number of elements.… Read More
Given a sorted array, the task is to remove the duplicate elements from the array.Examples: Input: arr[] = {2, 2, 2, 2, 2} Output: arr[]… Read More
Given a string of lowercase characters from ‘a’ – ‘z’. We need to write a program to print the characters of this string in sorted… Read More
The problem is to convert the given binary number (represented as string) to its equivalent octal number. The input could be very large and may… Read More
Given a 2D matrix, the task is to find Trace and Normal of matrix.Normal of a matrix is defined as square root of sum of… Read More
Given two binary strings, return their sum (also a binary string).Example: Input: a = "11", b = "1" Output: "100" We strongly recommend you to… Read More
The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning.… Read More
Given a decimal number as input, we need to write a program to convert the given decimal number into an equivalent binary number. Examples:  Input:… Read More
Given a string, reverse it using stack. For example “GeeksQuiz” should be converted to “ziuQskeeG”. Following is simple algorithm to reverse a string using stack. … Read More

Start Your Coding Journey Now!