摘要: Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive. Range sum S(i, j) is defined as the sum of the elem 阅读全文
posted @ 2016-08-11 14:15 LiBlog 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: You may assu 阅读全文
posted @ 2016-08-11 12:40 LiBlog 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Design a Tic-tac-toe game that is played between two players on a n x n grid. You may assume the following rules: Example: Follow up: Could you do bet 阅读全文
posted @ 2016-08-11 12:36 LiBlog 阅读(232) 评论(0) 推荐(0) 编辑