摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumR 阅读全文
posted @ 2019-12-08 23:26 xuan_abc 阅读(129) 评论(0) 推荐(0)
摘要: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac 阅读全文
posted @ 2019-12-08 12:38 xuan_abc 阅读(222) 评论(0) 推荐(0)
摘要: Design a data structure that supports the following two operations: void addWord(word) bool search(word) search(word) can search a literal word or a r 阅读全文
posted @ 2019-12-08 12:00 xuan_abc 阅读(397) 评论(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-12-08 06:51 xuan_abc 阅读(203) 评论(0) 推荐(0)