摘要: Problem: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] 阅读全文
posted @ 2016-12-29 11:26 SillyVicky 阅读(137) 评论(0) 推荐(0)
摘要: Problem: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return Summary: 输出杨辉三角的前n行。 Solution: 方法类似于Lee 阅读全文
posted @ 2016-12-29 01:24 SillyVicky 阅读(162) 评论(0) 推荐(0)