摘要: Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges mak 阅读全文
posted @ 2018-01-20 03:38 逸朵 阅读(154) 评论(0) 推荐(0)
摘要: Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the 阅读全文
posted @ 2018-01-20 02:24 逸朵 阅读(138) 评论(0) 推荐(0)