自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Coder_Orz的博客

请赐我成为大神的力量吧...Orz...

  • 博客(31)
  • 收藏
  • 关注

原创 303. Range Sum Query - Immutable [easy] (Python)

题目链接https://leetcode.com/problems/range-sum-query-immutable/题目原文 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-

2016-06-20 15:20:23 3084

原创 28. Implement strStr() [easy] (Python)

题目链接https://leetcode.com/problems/implement-strstr/题目原文 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.题目翻译实现 strSt

2016-06-19 01:25:02 7775 5

原创 67. Add Binary [easy] (Python)

题目链接https://leetcode.com/problems/add-binary/题目原文 题目翻译思路方法思路一代码说明思路二代码说明思路三代码说明PS: 新手刷LeetCode,新手写博客,写错了或者写的不清楚还请帮忙指出,谢谢! 转载请注明:

2016-06-18 17:29:55 7510 2

原创 14. Longest Common Prefix [easy] (Python)

题目链接https://leetcode.com/problems/longest-common-prefix/题目原文 Write a function to find the longest common prefix string amongst an array of strings.题目翻译写个函数,找出一个字符串数组中所有字符串的最长公共前缀。 题目描述不清晰。。。补充几个例子,

2016-06-18 17:06:51 10365 2

原创 203. Remove Linked List Elements [easy] (Python)

题目链接https://leetcode.com/problems/remove-linked-list-elements/题目原文 Remove all elements from a linked list of integers that have value val. Example Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6, val

2016-06-18 16:30:01 7001 1

原创 257. Binary Tree Paths [easy] (Python)

题目链接https://leetcode.com/problems/binary-tree-paths/题目原文 Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \2 3 \ 5 All root-t

2016-06-18 15:55:42 6604

原创 190. Reverse Bits [easy] (Python)

题目链接https://leetcode.com/problems/reverse-bits/题目原文 Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100

2016-06-18 11:04:11 6004

原创 38. Count and Say [easy] (Python)

题目链接https://leetcode.com/problems/count-and-say/题目原文 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1"

2016-06-17 19:55:49 7279 1

原创 58. Length of Last Word [easy] (Python)

题目链接https://leetcode.com/problems/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. I

2016-06-17 19:41:16 5210

原创 20. Valid Parentheses [easy] (Python)

题目链接https://leetcode.com/problems/valid-parentheses/题目原文 Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. The brackets must

2016-06-17 10:18:55 8246 1

原创 290. Word Pattern [easy] (Python)

题目链接https://leetcode.com/problems/word-pattern/题目原文 Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between

2016-06-16 17:48:27 5192 2

原创 19. Remove Nth Node From End of List [easy] (Python)

题目链接https://leetcode.com/problems/remove-nth-node-from-end-of-list/题目原文 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1

2016-06-16 13:36:34 2909

原创 205. Isomorphic Strings [easy] (Python)

题目链接https://leetcode.com/problems/isomorphic-strings/题目原文 Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t.

2016-06-15 14:02:47 5714

原创 88. Merge Sorted Array [easy] (Python)

题目链接https://leetcode.com/problems/merge-sorted-array/题目原文 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enou

2016-06-15 13:54:39 7656 1

原创 223. Rectangle Area [easy] (Python)

题目链接https://leetcode.com/problems/rectangle-area/题目原文 Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right c

2016-06-15 11:24:21 2665

原创 219. Contains Duplicate II [easy] (Python)

题目链接https://leetcode.com/problems/contains-duplicate-ii/题目原文 Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums

2016-06-14 19:59:14 4016

原创 160. Intersection of Two Linked Lists [easy] (Python)

题目链接https://leetcode.com/problems/intersection-of-two-linked-lists/题目原文 Write a program to find the node at which the intersection of two singly linked lists begins. For example, the foll

2016-06-08 21:23:41 4222

原创 225. Implement Stack using Queues [easy] (Python)

题目链接https://leetcode.com/problems/implement-stack-using-queues/题目原文 Implement the following operations of a stack using queues. 1. push(x) – Push element x onto stack. 2. pop() – Removes

2016-06-07 16:57:33 3530

原创 36. Valid Sudoku [easy] (Python)

题目链接https://leetcode.com/problems/valid-sudoku/题目原文 Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are fi

2016-06-06 16:35:20 4829 3

原创 112. Path Sum [easy] (Python)

题目链接https://leetcode.com/problems/path-sum/题目原文 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

2016-06-06 15:28:13 3829

原创 119. Pascal's Triangle II [easy] (Python)

题目链接https://leetcode.com/problems/pascals-triangle-ii/题目原文 Given an index k, return the kth row of the Pascal’s triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you o

2016-06-05 20:57:29 2730

原创 172. Factorial Trailing Zeroes [easy] (Python)

题目链接https://leetcode.com/problems/factorial-trailing-zeroes/题目原文 Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity.题目翻

2016-06-05 17:40:21 3489 1

原创 118. Pascal's Triangle [easy] (Python)

题目链接https://leetcode.com/problems/pascals-triangle/题目原文 Given numRows, generate the first numRows of Pascal’s triangle. For example, given numRows = 5, Return[ [1], [1,1], [1,2,1

2016-06-05 14:01:39 4332 2

原创 26. Remove Duplicates from Sorted Array [easy] (Python)

题目链接https://leetcode.com/problems/remove-duplicates-from-sorted-array/题目原文 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.

2016-06-05 12:48:32 4456

原创 232. Implement Queue using Stacks [easy] (Python)

题目链接https://leetcode.com/problems/implement-queue-using-stacks/题目原文 Implement the following operations of a queue using stacks. 1. push(x) – Push element x to the back of queue. 2. pop() – Remo

2016-06-04 23:32:59 3435

原创 66. Plus One [easy] (Python)

题目链接https://leetcode.com/problems/plus-one/题目原文 Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit

2016-06-04 13:05:25 4276

原创 107. Binary Tree Level Order Traversal II [easy] (Python)

题目链接https://leetcode.com/problems/binary-tree-level-order-traversal-ii/题目原文 Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by lev

2016-06-04 12:05:34 3906 1

原创 101. Symmetric Tree [easy] (Python)

题目链接https://leetcode.com/problems/symmetric-tree/题目原文 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric:

2016-06-03 15:53:34 5490

原创 27. Remove Element [easy] (Python)

题目链接https://leetcode.com/problems/remove-element/题目原文 Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another a

2016-06-03 14:49:47 3712 1

原创 198. House Robber [easy] (Python)

题目链接https://leetcode.com/problems/house-robber/题目原文 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint s

2016-06-01 14:39:22 5280 1

原创 345. Reverse Vowels of a String [easy] (Python)

题目链接https://leetcode.com/problems/reverse-vowels-of-a-string/题目原文 Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = “hello”, return

2016-06-01 14:10:20 3745

空空如也

空空如也

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

TA关注的人

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