上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 54 下一页
摘要: How this game is playe can be found at here. Python ROWS = 6 COLS = 7 def create_board(): return [[' ' for _ in range(COLS)] for _ in range(ROWS)] def 阅读全文
posted @ 2019-08-16 11:36 北叶青藤 阅读(684) 评论(0) 推荐(0)
摘要: There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop roll 阅读全文
posted @ 2019-08-13 12:34 北叶青藤 阅读(154) 评论(0) 推荐(0)
摘要: Your task is to design the basic function of Excel and implement the function of sum formula. Specifically, you need to implement the following functi 阅读全文
posted @ 2019-08-12 09:14 北叶青藤 阅读(339) 评论(0) 推荐(0)
摘要: Design and implement a data structure for a compressed string iterator. It should support the following operations: next and hasNext. The given compre 阅读全文
posted @ 2019-08-12 05:14 北叶青藤 阅读(183) 评论(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 @ 2019-08-12 02:01 北叶青藤 阅读(386) 评论(0) 推荐(0)
摘要: Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functions: add(value): Insert a val 阅读全文
posted @ 2019-08-11 10:20 北叶青藤 阅读(182) 评论(0) 推荐(0)
摘要: Design your implementation of the circular double-ended queue (deque). Your implementation should support following operations: MyCircularDeque(k): Co 阅读全文
posted @ 2019-08-11 09:46 北叶青藤 阅读(227) 评论(0) 推荐(0)
摘要: Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (F 阅读全文
posted @ 2019-08-11 09:02 北叶青藤 阅读(225) 评论(0) 推荐(0)
摘要: Design your implementation of the linked list. You can choose to use the singly linked list or the doubly linked list. A node in a singly linked list 阅读全文
posted @ 2019-08-11 02:58 北叶青藤 阅读(264) 评论(0) 推荐(0)
摘要: Design a Phone Directory which supports the following operations: get: Provide a number which is not assigned to anyone.check: Check if a number is av 阅读全文
posted @ 2019-08-11 02:21 北叶青藤 阅读(209) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 54 下一页