摘要: Integer Break Integer Break Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those inte 阅读全文
posted @ 2016-05-13 17:59 `Liok 阅读(426) 评论(0) 推荐(0) 编辑
摘要: Reverse String Reverse String Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh" 阅读全文
posted @ 2016-05-13 17:16 `Liok 阅读(272) 评论(0) 推荐(0) 编辑
摘要: op K Frequent Elements op K Frequent Elements Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3 阅读全文
posted @ 2016-05-13 16:34 `Liok 阅读(711) 评论(0) 推荐(0) 编辑
摘要: Flatten Nested List Iterator Flatten Nested List Iterator Given a nested list of integers, implement an iterator to flatten it. Each element is either 阅读全文
posted @ 2016-05-13 16:23 `Liok 阅读(1340) 评论(0) 推荐(0) 编辑
摘要: Reverse Vowels of a String Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1 阅读全文
posted @ 2016-05-13 16:18 `Liok 阅读(1045) 评论(0) 推荐(0) 编辑