摘要: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2020-04-14 21:49 xuan_abc 阅读(154) 评论(0) 推荐(0)
摘要: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num 阅读全文
posted @ 2020-04-14 21:07 xuan_abc 阅读(203) 评论(0) 推荐(0)
摘要: Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word 阅读全文
posted @ 2020-04-14 07:52 xuan_abc 阅读(125) 评论(0) 推荐(0)
摘要: Design an in-memory file system to simulate the following functions: ls: Given a path in string format. If it is a file path, return a list that only 阅读全文
posted @ 2020-04-14 04:29 xuan_abc 阅读(304) 评论(0) 推荐(0)