随笔分类 -  积累

摘要:Check if a given binary tree is completed. A complete binary tree is one in which every level of the binary tree is completely filled except possibly 阅读全文
posted @ 2020-01-03 04:06 La_Campanella 阅读(210) 评论(0) 推荐(0)
摘要:Given a matrix of size N x M. For each row the elements are sorted in ascending order, and for each column the elements are also sorted in ascending o 阅读全文
posted @ 2020-01-03 04:05 La_Campanella 阅读(130) 评论(0) 推荐(0)
摘要:Get the list of list of keys in a given binary tree layer by layer. Each layer is represented by a list of keys and the keys are traversed from left t 阅读全文
posted @ 2020-01-02 04:07 La_Campanella 阅读(215) 评论(0) 推荐(0)
摘要:Find the K smallest numbers in an unsorted integer array A. The returned numbers should be in ascending order. Assumptions A is not null K is >= 0 and 阅读全文
posted @ 2020-01-02 03:42 La_Campanella 阅读(128) 评论(0) 推荐(0)