上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 36 下一页
摘要: Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the game. The snak 阅读全文
posted @ 2016-08-15 09:45 LiBlog 阅读(231) 评论(0) 推荐(0) 编辑
摘要: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee 阅读全文
posted @ 2016-08-12 14:54 LiBlog 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 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 find the number of connected 阅读全文
posted @ 2016-08-12 13:45 LiBlog 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro 阅读全文
posted @ 2016-08-12 12:27 LiBlog 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead. Example 1: Given 阅读全文
posted @ 2016-08-12 12:24 LiBlog 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. Example: 阅读全文
posted @ 2016-08-09 13:54 LiBlog 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Given an Android 3x3 key lock screen and two integers m and n, where 1 ≤ m ≤ n ≤ 9, count the total number of unlock patterns of the Android lock scre 阅读全文
posted @ 2016-08-09 12:25 LiBlog 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 36 下一页