摘要: Problem: Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algori 阅读全文
posted @ 2016-12-28 12:19 SillyVicky 阅读(178) 评论(0) 推荐(0)
摘要: Problem: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input woul 阅读全文
posted @ 2016-12-28 09:18 SillyVicky 阅读(120) 评论(0) 推荐(0)
摘要: Problem: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time 阅读全文
posted @ 2016-12-28 09:08 SillyVicky 阅读(169) 评论(0) 推荐(0)
摘要: Problem: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. 阅读全文
posted @ 2016-12-28 05:28 SillyVicky 阅读(911) 评论(0) 推荐(0)