摘要:
Design a Tic-tac-toe game that is played between two players on a n x n grid. You may assume the following rules: A move is guaranteed to be valid and 阅读全文
posted @ 2016-07-27 21:01
北叶青藤
阅读(179)
评论(0)
推荐(0)
摘要:
Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 el 阅读全文
posted @ 2016-07-27 11:13
北叶青藤
阅读(194)
评论(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-07-27 05:49
北叶青藤
阅读(221)
评论(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]. 分析: http://blog.csd 阅读全文
posted @ 2016-07-27 01:24
北叶青藤
阅读(214)
评论(0)
推荐(0)

浙公网安备 33010602011771号