上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: Implement pow(x, n). 水题 直接 就可以过了。 用快速幂比较好一点。 阅读全文
posted @ 2017-04-01 12:45 aiterator 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, group anagrams together. For example, given: , Return: [ ["ate", "eat","tea"], ["nat","tan"], ["bat"] ] Note: All inputs wi 阅读全文
posted @ 2017-03-31 20:39 aiterator 阅读(113) 评论(0) 推荐(0) 编辑
摘要: You are given an 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in place? 水题 C++ class Solu 阅读全文
posted @ 2017-03-31 19:52 aiterator 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, have the following unique permutati 阅读全文
posted @ 2017-03-31 19:21 aiterator 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given a collection of distinct numbers, return all possible permutations. For example, have the following permutations: [ [1,2,3], [1,3,2], [2,1,3], [ 阅读全文
posted @ 2017-03-31 18:26 aiterator 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given an array of non negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2017-03-31 16:13 aiterator 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 自己终究只是普通人 帮别人写一个大作业,发现自己真的什么都不会。 每天朝九晚五的在机房,人际交流很少,上课也不听讲,只想学习一些自己感兴趣的东西,以为慢慢学习总会有收获的,积少成多,总会变厉害的。 今天才发现,自己真的好垃圾。 终究只是普通人。。 还是做一个不太平凡的普通人吧!就算垃圾,相信慢慢学习 阅读全文
posted @ 2017-03-30 22:51 aiterator 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for '?' and ' '. '?' Matches any single character. ' ' Matches any sequence of characters (including 阅读全文
posted @ 2017-03-29 20:14 aiterator 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Given two non negative integers and represented as strings, return the product of and . Note: + 1.The length of both and is &arr) { for(int i=str.size 阅读全文
posted @ 2017-03-28 11:33 aiterator 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Given non negative integers representing an elevation map where the width of each bar is , compute how much water it is able to trap after raining. Fo 阅读全文
posted @ 2017-03-27 21:41 aiterator 阅读(93) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页