文章 212
评论 2
浏览 124957
Binary Search - 378. Kth Smallest Element in a Sorted Matrix

Binary Search - 378. Kth Smallest Element in a Sorted Matrix

Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.

Array - 59. Spiral Matrix II

Array - 59. Spiral Matrix II

Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.

Nothing just happens, it's all part of a plan.