Given a 2D Matrix, return the transpose of it. The transpose of a matrix is the matrix flipped over it’s main diagonal, switching the row and column indices of …
Recently I have observed a slightly increase of CPU usage (and quite frequent cpu spikes) on one of my API server, which is used to host Steem Tools/APIs and …
We often need to create multi-dimensional arrays. In C/C++, depending on the memory management, this can be categorised into static arrays and dynamic arrays. How to Create 2 or …
Whenever you go on the internet and interact with a website or an online service, you are unwittingly exchanging vast amounts of information. Even if you take some basic …
Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node’s value equals the given …
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are …