Skip to content

Tag Archives: cpp-array

What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
An array is the collection of multiple items of the same type stored in contiguous memory locations. While declaring Arrays, the size should be mentioned… Read More
Given a binary array arr[N], (where N = 2) of size two having at least one element as zero. The task is to write a… Read More
Reference to an array means aliasing an array while retaining its identity. Reference to an array will not be an int* but an int[]. Let… Read More
In this article we will discuss the implementation of the lower_bound() and upper_bound() in an array of pairs. lower_bound(): It returns an iterator pointing to… Read More
Given a vector of arrays, the task is to sort them. Examples: Input: [[1, 2, 3], [10, 20, 30], [30, 60, 90], [10, 20, 10]]… Read More
Array: An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together.… Read More
Given an array a of integers of size N integers, the task is to find the ratio of positive numbers, negative numbers and zeros in… Read More
An array is a collection of items stored at contiguous memory locations. In this article, we will see how to insert an element in an… Read More
Given an array, the task is to remove the duplicate elements from the array using STL in C++ Examples: Input: arr[] = {2, 2, 2,… 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
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
Given a binary array, the task is to count the number of 1’s and 0’s in this array using STL in C++. Examples: Input: arr[]… Read More

Start Your Coding Journey Now!