自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(72)
  • 收藏
  • 关注

转载 [Leetcode][Python]56: Merge Intervals

# -*- coding: utf8 -*-'''__author__ = '[email protected]'56: Merge Intervalshttps://oj.leetcode.com/problems/merge-intervals/Given a collection of intervals, merge all overlapping intervals.Fo...

2015-04-07 03:42:00 102

转载 [Leetcode][Python]55: Jump Game

# -*- coding: utf8 -*-'''__author__ = '[email protected]'55: Jump Gamehttps://leetcode.com/problems/jump-game/Given an array of non-negative integers, you are initially positioned at the first...

2015-04-07 03:25:00 99

转载 [Leetcode][Python]54: Spiral Matrix

# -*- coding: utf8 -*-'''__author__ = '[email protected]'54: Spiral Matrixhttps://leetcode.com/problems/spiral-matrix/Given a matrix of m x n elements (m rows, n columns), return all elements ...

2015-03-30 21:39:00 127

转载 [Leetcode][Python]53: Maximum Subarray

# -*- coding: utf8 -*-'''__author__ = '[email protected]'53: Maximum Subarrayhttps://leetcode.com/problems/maximum-subarray/Find the contiguous subarray within an array (containing at least on...

2015-03-30 20:27:00 84

转载 [Leetcode][Python]52: N-Queens II

# -*- coding: utf8 -*-'''__author__ = '[email protected]'52: N-Queens IIhttps://oj.leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations...

2015-03-27 22:25:00 113

转载 [Leetcode][Python]51: N-Queens

# -*- coding: utf8 -*-'''__author__ = '[email protected]'51: N-Queenshttps://oj.leetcode.com/problems/n-queens/The n-queens puzzle is the problem of placing n queens on an n×n chessboard such ...

2015-03-27 01:10:00 77

转载 [Leetcode][Python]50: Pow(x, n)

# -*- coding: utf8 -*-'''__author__ = '[email protected]'50: Pow(x, n)https://leetcode.com/problems/powx-n/Implement pow(x, n).=== Comments by Dabay===技巧在于用x的平方来让n减半。同时注意n为负数的情况,以及n为奇数的情况。'''c...

2015-03-27 01:05:00 98

转载 [Leetcode][Python]49: Anagrams

# -*- coding: utf8 -*-'''__author__ = '[email protected]'49: Anagramshttps://leetcode.com/problems/anagrams/Given an array of strings, return all groups of strings that are anagrams.Note: All ...

2015-03-26 01:37:00 90

转载 [Leetcode][Python]48: Rotate Image

# -*- coding: utf8 -*-'''__author__ = '[email protected]'48: Rotate Imagehttps://leetcode.com/problems/rotate-image/You are given an n x n 2D matrix representing an image.Rotate the image by 9...

2015-03-26 01:07:00 69

转载 [Leetcode][Python]47: Permutations II

# -*- coding: utf8 -*-'''__author__ = '[email protected]'47: Permutations IIhttps://oj.leetcode.com/problems/permutations-ii/Given a collection of numbers that might contain duplicates, return...

2015-03-25 01:37:00 76

转载 [Leetcode][Python]46: Permutations

# -*- coding: utf8 -*-'''__author__ = '[email protected]'46: Permutationshttps://leetcode.com/problems/permutations/Given a collection of numbers, return all possible permutations.For example,...

2015-03-24 23:26:00 85

转载 [Leetcode][Python]45: Jump Game II

# -*- coding: utf8 -*-'''__author__ = '[email protected]'45: Jump Game IIhttps://oj.leetcode.com/problems/jump-game-ii/Given an array of non-negative integers, you are initially positioned at ...

2015-03-24 23:16:00 73

转载 [Leetcode][Python]44:Wildcard Matching

# -*- coding: utf8 -*-'''__author__ = '[email protected]'44:Wildcard Matchinghttps://oj.leetcode.com/problems/wildcard-matching/'?' Matches any single character.'*' Matches any sequence of cha...

2015-03-23 22:32:00 117

转载 [Leetcode][Python]43: Multiply Strings

# -*- coding: utf8 -*-'''__author__ = '[email protected]'43: Multiply Stringshttps://leetcode.com/problems/multiply-strings/Given two numbers represented as strings, return multiplication of t...

2015-03-23 22:27:00 67

转载 [Leetcode][Python]42: Trapping Rain Water

# -*- coding: utf8 -*-'''__author__ = '[email protected]'42: Trapping Rain Waterhttps://oj.leetcode.com/problems/trapping-rain-water/Given n non-negative integers representing an elevation map...

2015-03-19 23:45:00 47

转载 [Leetcode][Python]41: First Missing Positive

# -*- coding: utf8 -*-'''__author__ = '[email protected]'41: First Missing Positivehttps://oj.leetcode.com/problems/first-missing-positive/Given an unsorted integer array, find the first missi...

2015-03-19 22:24:00 126

转载 [Leetcode][Python]40: Combination Sum II

# -*- coding: utf8 -*-'''__author__ = '[email protected]'40: Combination Sum IIhttps://oj.leetcode.com/problems/combination-sum-ii/Given a collection of candidate numbers (C) and a target numb...

2015-02-06 23:49:00 78

转载 [Leetcode][Python]39: Combination Sum

# -*- coding: utf8 -*-'''__author__ = '[email protected]'39: Combination Sumhttps://oj.leetcode.com/problems/combination-sum/Given a set of candidate numbers (C) and a target number (T),find a...

2015-02-06 23:48:00 69

转载 [Leetcode][Python]19: Remove Nth Node From End of List

# -*- coding: utf8 -*-'''__author__ = '[email protected]'38: Count and Sayhttps://oj.leetcode.com/problems/count-and-say/The count-and-say sequence is the sequence of integers beginning as fol...

2015-02-06 05:47:00 61

转载 [Leetcode][Python]37: Sudoku Solver

# -*- coding: utf8 -*-'''__author__ = '[email protected]'37: Sudoku Solverhttps://oj.leetcode.com/problems/sudoku-solver/Write a program to solve a Sudoku puzzle by filling the empty cells.Emp...

2015-02-06 03:37:00 99

转载 [Leetcode][Python]36: Valid Sudoku

# -*- coding: utf8 -*-'''__author__ = '[email protected]'36: Valid Sudokuhttps://oj.leetcode.com/problems/valid-sudoku/Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules....

2015-02-05 01:36:00 67

转载 [Leetcode][Python]35: Search Insert Position

# -*- coding: utf8 -*-'''__author__ = '[email protected]'35: Search Insert Positionhttps://oj.leetcode.com/problems/search-insert-position/Given a sorted array and a target value, return the i...

2015-02-04 01:35:00 68

转载 [Leetcode][Python]34: Search for a Range

# -*- coding: utf8 -*-'''__author__ = '[email protected]'34: Search for a Rangehttps://oj.leetcode.com/problems/search-for-a-range/Given a sorted array of integers, find the starting and endin...

2015-02-04 00:33:00 70

转载 [Leetcode][Python]33: Search in Rotated Sorted Array

# -*- coding: utf8 -*-'''__author__ = '[email protected]'33: Search in Rotated Sorted Arrayhttps://oj.leetcode.com/problems/search-in-rotated-sorted-array/Suppose a sorted array is rotated at ...

2015-02-03 01:40:00 68

转载 [Leetcode][Python]32: Longest Valid Parentheses

# -*- coding: utf8 -*-'''__author__ = '[email protected]'32: Longest Valid Parentheseshttps://oj.leetcode.com/problems/longest-valid-parentheses/Given a string containing just the characters '...

2015-02-01 01:43:00 79

转载 [Leetcode][Python]31: Next Permutation

# -*- coding: utf8 -*-'''__author__ = '[email protected]'31: Next Permutationhttps://oj.leetcode.com/problems/next-permutation/Implement next permutation, which rearranges numbers into the lex...

2015-01-31 01:50:00 83

转载 [Leetcode][Python]30: Substring with Concatenation of All Words

# -*- coding: utf8 -*-'''__author__ = '[email protected]'30: Substring with Concatenation of All Wordshttps://oj.leetcode.com/problems/substring-with-concatenation-of-all-words/You are giv...

2015-01-30 23:15:00 59

转载 [Leetcode][Python]29: Divide Two Integers

# -*- coding: utf8 -*-'''__author__ = '[email protected]'29: Divide Two Integershttps://oj.leetcode.com/problems/divide-two-integers/Divide two integers without using multiplication, division ...

2015-01-30 19:33:00 90

转载 [Leetcode][Python]28: Implement strStr()

# -*- coding: utf8 -*-'''__author__ = '[email protected]'28: Implement strStr()https://oj.leetcode.com/problems/implement-strstr/Implement strStr().Returns the index of the first occurrence of...

2015-01-30 04:40:00 71

转载 [Leetcode][Python]27: Remove Element

# -*- coding: utf8 -*-'''__author__ = '[email protected]'27: Remove Elementhttps://oj.leetcode.com/problems/remove-element/Given an array and a value, remove all instances of that value in pla...

2015-01-30 03:53:00 69

转载 [Leetcode][Python]26: Remove Duplicates from Sorted Array

# -*- coding: utf8 -*-'''__author__ = '[email protected]'26: Remove Duplicates from Sorted Arrayhttps://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/Given a sorted array, remov...

2015-01-30 01:36:00 84

转载 [Leetcode][Python]25: Reverse Nodes in k-Group

# -*- coding: utf8 -*-'''__author__ = '[email protected]'25: Reverse Nodes in k-Grouphttps://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked list, reverse the nodes of a linke...

2015-01-29 21:10:00 65

转载 [Leetcode][Python]24: Swap Nodes in Pairs

# -*- coding: utf8 -*-'''__author__ = '[email protected]'24: Swap Nodes in Pairshttps://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and retu...

2015-01-29 00:00:00 61

转载 [Leetcode][Python]23: Merge k Sorted Lists

# -*- coding: utf8 -*-'''__author__ = '[email protected]'23: Merge k Sorted Listshttps://oj.leetcode.com/problems/merge-k-sorted-lists/Merge k sorted linked lists and return it as one sorted l...

2015-01-27 21:52:00 54

转载 [Leetcode][Python]22: Generate Parentheses

# -*- coding: utf8 -*-'''__author__ = '[email protected]'22: Generate Parentheseshttps://oj.leetcode.com/problems/generate-parentheses/Given n pairs of parentheses, write a function to generat...

2015-01-27 21:46:00 67

转载 [Leetcode][Python]21: Merge Two Sorted Lists

# -*- coding: utf8 -*-'''__author__ = '[email protected]'21: Merge Two Sorted Listshttps://oj.leetcode.com/problems/merge-two-sorted-lists/Merge two sorted linked lists and return it as a new ...

2015-01-27 03:30:00 59

转载 [Leetcode][Python]20: Valid Parentheses

# -*- coding: utf8 -*-'''__author__ = '[email protected]'20: Valid Parentheseshttps://oj.leetcode.com/problems/valid-parentheses/Given a string containing just the characters '(', ')', '{', '}...

2015-01-23 23:36:00 53

转载 [Leetcode][Python]19: Remove Nth Node From End of List

# -*- coding: utf8 -*-'''__author__ = '[email protected]'19: Remove Nth Node From End of Listhttps://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/Given a linked list, remove the n...

2015-01-23 23:21:00 70

转载 [LeetCode][Python]18: 4Sum

# -*- coding: utf8 -*-'''__author__ = '[email protected]'18: 4Sumhttps://oj.leetcode.com/problems/4sum/Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + ...

2015-01-21 23:49:00 57

转载 [LeetCode][Python]17: Letter Combinations of a Phone Number

# -*- coding: utf8 -*-'''__author__ = '[email protected]'17: Letter Combinations of a Phone Numberhttps://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/Given a digit string, r...

2015-01-21 22:35:00 73

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除