上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页
摘要: 题目: Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: The solution set must not contain duplicate 阅读全文
posted @ 2017-04-23 07:25 panini 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 链接:https://leetcode. 阅读全文
posted @ 2017-04-23 02:55 panini 阅读(169) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-04-21 00:00 panini 阅读(5) 评论(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 m 阅读全文
posted @ 2017-04-20 05:59 panini 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix: Y 阅读全文
posted @ 2017-04-20 01:01 panini 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: All inputs will 阅读全文
posted @ 2017-04-19 23:56 panini 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement pow(x, n). 链接: http://leetcode.com/problems/powx-n/ 题解: 使用二分法求实数幂,假如不建立临时变量halfPow,直接return计算结果的话会超时,还没仔细研究为什么。 4/15/2017 22ms, 50% 要考虑到 阅读全文
posted @ 2017-04-16 11:22 panini 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-place? 链接: http 阅读全文
posted @ 2017-04-16 10:16 panini 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following uniqu 阅读全文
posted @ 2017-04-16 07:57 panini 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a collection of numbers, return all possible permutations. For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2 阅读全文
posted @ 2017-04-16 06:27 panini 阅读(238) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页