Tag: algorithms
You are given an array rectangles where rectangles = represents the ith rectangle of length li and width wi. You can cut the ith rectangle to form a square …
Teaching Kids Programming: Videos on Data Structures and Algorithms Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted …
You are given a binary tree root containing unique values, and an integer target. Find the node with value target and return the node that’s directly right of it …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it’s …
In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N …