- 博客(8)
- 收藏
- 关注
原创 leetcode 49. Group Anagrams
Given an array of strings, group anagrams together.For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return:[ ["ate", "eat","tea"], ["nat","tan"], ["bat"]]Note: Al
2017-06-28 01:05:08 164
原创 leetcode 47. Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[ [1,1,2], [1,2,1], [2,1,1
2017-06-26 18:29:33 138
原创 leetcode 48. Rotate Image
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?题意是把一个矩阵顺时针旋转90度,一个比较好的思路是先转置矩阵,然后把矩阵每一行逆序。public
2017-06-26 15:10:44 125
原创 leetcode 46. Permutations
Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1
2017-06-14 23:49:41 144
原创 leetcode 45.Jump Game II
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 maximum jump length at that position.Your goal i
2017-06-06 01:39:51 193
原创 pandas.DataFrame.fillna 的几种method
根据官方文档,我们知道fillna有一下几种method:‘backfill’, ‘bfill’, ‘pad’, ‘ffill’, None;那么每一种method都是起什么样的作用呢?method : {‘backfill’, ‘bfill’, ‘pad’, ‘ffill’, None}, default NoneMethod to use for filling hol
2017-06-05 16:56:51 35670
原创 leetcode 44. Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover t
2017-06-05 01:32:50 149
原创 leetcode 43. Multiply Strings
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note:The length of both num1 and num2 is Both num1 and num2 contains only digits
2017-06-04 02:02:06 145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人