- 博客(56)
- 资源 (8)
- 收藏
- 关注
原创 24 Python assert,Exception的异常信息为unicode的中文时
Python assert,Exception的异常信息为uicode的中文
2016-12-29 16:01:21 3301
原创 67 leetcode - First Missing Positive
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.
2016-12-28 19:59:51 430
原创 66 leetcode - Partition List
Partition ListGiven a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
2016-12-27 20:45:15 211
原创 65 leetcode - Climbing Stairs
Climbing StairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
2016-12-27 20:44:03 214
原创 64 leetcode - Unique Paths II
Unique Paths IINow consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the grid.
2016-12-27 20:42:57 208
原创 63 leetcode - Unique Paths
Unique PathsA robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach th
2016-12-27 20:41:17 223
原创 62 leetcode - Spiral Matrix II
Spiral Matrix IIGiven an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
2016-12-26 18:19:15 173
原创 61 leetcode - Spiral Matrix
Spiral MatrixGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
2016-12-26 18:18:36 237
原创 60 leetcode - Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.
2016-12-26 18:17:23 244
原创 59 leetcode - Add Binary
Add BinaryGiven two binary strings, return their sum (also a binary string).
2016-12-26 18:15:45 276
原创 58 leetcode - Plus One
Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.
2016-12-25 20:02:17 270
原创 57 leetcode - Jump Game II
Jump Game IIGiven 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.
2016-12-25 19:48:12 241
原创 56 leetcode - Jump Game
Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.
2016-12-25 10:28:40 277
原创 55 leetcode - N-Queens II
N-Queens IINow, instead outputting board configurations, return the total number of distinct solutions.八皇后问题
2016-12-23 15:44:53 447
原创 54 leetcode - N-Queens
N-QueensThe n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.八皇后问题
2016-12-23 15:37:31 349 1
原创 53 leetcode - Group Anagrams
Group Anagrams.Given an array of strings, group anagrams together.
2016-12-23 14:44:50 319
原创 22 Python class 深入理解Python中的元类(metaclass)
深入理解Python中的元类(metaclass)。详细介绍了元类的由来,使用方法,注意事项,案例等。
2016-12-23 11:38:32 1312
原创 52 leetcode - Multiply Strings
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.
2016-12-22 19:31:05 202
原创 51 leetcode - Minimum Size Subarray Sum
Minimum Size Subarray Sum Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead.
2016-12-21 22:56:07 401
原创 50 leetcode - Maximum Product Subarray
Maximum Product Subarray.Find the contiguous subarray within an array (containing at least one number) which has the largest product.
2016-12-21 19:18:02 280
原创 49 leetcode - Maximum Subarray
Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.
2016-12-21 12:41:35 196
原创 48 leetcode - Combination Sum IV
Combination Sum IVGiven an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.
2016-12-20 21:57:22 309
原创 47 leetcode - Combination Sum III
Combination Sum IIIFind all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.
2016-12-20 21:52:22 302
原创 46 leetcode - 如何快速判断一个数是不是2的幂、3的幂、4的幂
快速判断一个数是不是2的幂,3的幂,4的幂.Power of Three,Power of Two,Power of Four
2016-12-19 13:58:54 2241
原创 45 leetcode - Rotate Function
Rotate FunctionGiven an array of integers A and let n to be its length.
2016-12-18 11:34:21 270
原创 44 leetcode - Rotate Array
Rotate ArrayRotate an array of n elements to the right by k steps.
2016-12-18 11:32:58 200
原创 43 leetcode - Rotate List
Rotate ListGiven a list, rotate the list to the right by k places, where k is non-negative.
2016-12-16 11:41:25 260
原创 42 leetcode - Rotate Image
Rotate ImageYou are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise)。
2016-12-16 11:37:47 189
原创 41 leetcode - Search a 2D Matrix II
Search a 2D Matrix IIWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from left to right....
2016-12-15 19:23:09 239
原创 40 leetcode - Search a 2D Matrix
Search a 2D Matrix Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.
2016-12-15 19:20:58 212
原创 39 leetcode - Combination Sum II
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
2016-12-14 09:34:53 209
原创 38 leetcode - Combination Sum
Combination Sum.Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
2016-12-14 08:53:29 219
原创 37 leetcode - Count and Say
Count and Say The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...求第n个序列.
2016-12-13 16:54:30 294
jdk-8u121-linux-x64.tar.gz
2019-05-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人