## Virtual destructor in C++ Programming | complete discussion

Suppose you are creating software in that you want to create some object by reference to its parents. There will be no issue right. Yes, there will be no issue in creating the object. The main problem arrives when you try to delete that object. If we delete the child class object through a pointer…

## Database management system (DBMS)

The database is a combination of related data that helps in effective access, insertion, and deletion of data from the database and prepares the data in the form of tables, views, schemas etc. For Example, a company database organizes the data about employees, jobs, and admin staff, etc. which assists in effective access, insertion, deletion,…

## Top 3 Programming Languages learn to get a good job in 2020

We are going to discuss of top 3 programming languages that can help you in landing a good job in the industry. There exist more programming languages than the human language in the world. The need and prevalence of programming languages vary each year. Also, modern programming languages are arising from engaging characteristics. So, which programming…

## How to sort a Vector in ascending order using STL in C++?

In this article, we will be discussing how to sort a given vector in ascending with the help of the STL algorithm ALSO READ : How to sort a vector in descending order How to sort a vector in ascending order : We are going to use a predefined function that has been described in STL algorithms this function is sort()….

## How to sort a Vector in descending order using STL in C++?

In this article, we will be discussing how to sort a given vector in descending with the help of the STL algorithm. ALSO READ : How to sort a vector in ascending order How to sort a vector in descending order : We are going to use a predefined function that has been described in STL algorithms this function is sort()….

## How to obtain shared elements within two Vector using STL in C++?

In this article, we will be discussing how to obtain shared elements between two vectors using STL in C++. To find this we are not writing any algorithm. We have methods defined STL library under algorithm does this stuff. How to find shared element: We are going to use a predefined function that has been…

## How to reverse a Vector using STL in C++?

Problem Statement: Given a vector, obtain the reverse of a vector using STL in C++. Example READ ABOUT ARE VECTORS How to solve it:  Reverse of a vector can be found with the assistant of reverse() function implemented in STL algorithm library. Syntax: Implementation: Output: Related Articles

## Monotonic Array | discussion and solution

An array is called a monotonic array if it is either monotone growing or monotone shrinking. In simple words, if your array is either in non-increasing order or nor-decreasing order then this type of array is called a monotonic array. Example: Algorithmic Definition An array A is monotone growing if for all i <= j, A[i] <= A[j]….

## Three number sum in an Array: Interview Question

Problem Statement : In three number sum problem, you have given an array of integers, you have to find the total sets of integers by adding them we can get our target sum. Example 1 Example 2 How to solve this problem Method 1 A simplistic approach is to produce all possible sets of numbers and compare the…

## Two Sum: Array interview question

Problem description Two sum : Given a vector of numbers vec and an integer target, return the pair of two numbers such that they add up to target value. Example 1 Example 2 Constraints 2 <= vec.size <= 105-109 <= vec.at(i) <= 109-109 <= target <= 109time complexity : O(n) Solution : we need an effective way to examine if the counterpart exists in the…