Given a two-dimensional integer matrix matrix and an integer k, return the largest sum of a rectangle ≤ k.
Posts with tag 'queue'
Given an undirected graph represented as an adjacency list, return whether the graph is bipartite.
Given a binary tree root, return the top view of the tree, sorted left-to-right.
Given a binary tree root return a level order traversal of the node values.
Given a binary tree root, convert it to a singly linked list using level order traversal.
Given a binary tree root, return values of the nodes in each level, alternating from going left-to-right and right-to-left.
Given a binary tree root, return whether all leaves are at the same level.