Author: ACMer
How to Check if Any Three Points can Make a Triangle? There are many ways to check if any given three points in 2D plane can make a triangle. …
Let’s say our task is to convert a set or unordered_set in C++ to std::vector, what would you do? Given the following set with integers (or other types) unordered_set<int> …
Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represented by an integer …
First of all EigenValues and EigenVectors are part of Linear Algebra. The branch of Mathematics which deals with linear equations, matrices, and vectors. The prime focus of the branch …
Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. …