自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 [leetcode][python]63. Unique Paths II

63. Unique Paths II 知识点:dynamic programming 1. 原题 A 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 ...

2020-04-12 06:10:17 302

原创 [leetcode][python]147. Insertion Sort List

147. Insertion Sort List 知识点:sort 1. 原题 Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the first element in t...

2020-04-12 05:49:09 312

原创 [leetcode][python] 62. Unique Paths

62. Unique Paths 知识点:dynamic programming 1. 原题 A 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 poi...

2020-04-11 03:47:28 323

原创 [leetcode][python] 3. Longest Substring Without Repeating Characters

3. Longest Substring Without Repeating Characters 知识点:two pointers 1. 原题 Given a string, find the length of the longest substring without repeating characters. Example 1: Input: “abcabcbb” Output: 3 ...

2020-04-11 02:55:15 364

原创 [leetcode][python] 457. Circular Array Loop

457. Circular Array Loop 知识点:two pointers 1. 原题 You are given a circular array nums of positive and negative integers. If a number k at an index is positive, then move forward k steps. Conversely, if...

2020-03-30 07:39:57 367

原创 [leetcode][python] 424. Longest Repeating Character Replacement

424. Longest Repeating Character Replacement 知识点: two pointers | sliding window 1. 原题 Given a string s that consists of only uppercase English letters, you can perform at most k operations on that st...

2020-03-30 07:19:49 352

原创 [leetcode][python] 74. Search a 2D Matrix

74. Search a 2D Matrix 知识点:binary search 1.原题 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...

2020-03-30 03:25:48 173

原创 [leetcode][python] 287. Find the Duplicate Number

287. Find the Duplicate Number 知识点:two pointers 1. 原题 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must ex...

2020-03-29 11:06:55 310

原创 [Leetcode][python]209. Minimum Size Subarray Sum

209. Minimum Size Subarray Sum 知识点:two pointers 1.原题 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there is...

2020-03-29 10:02:38 202

原创 [leetcode][python]142. Linked List Cycle II

142. Linked List Cycle II 知识点:two pointers 1. 原题 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked list, we use ...

2020-03-29 09:01:57 256 1

原创 [Leetcode][python]150. Evaluate Reverse Polish Notation

150. Evaluate Reverse Polish Notation 知识点:stack 1. 原题 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or anot...

2020-03-28 05:47:39 290

原创 [Leetcode][python] 144. Binary Tree Preorder Traversal

144. Binary Tree Preorder Traversal 知识点:slack 1.原题 Given a binary tree, return the preorder traversal of its nodes’ values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,2,3] ...

2020-03-28 04:38:29 222

原创 [leetcode][python] 103. Binary Tree Zigzag Level Order Traversal

103. Binary Tree Zigzag Level Order Traversal 知识点:slack 1. 原题 Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the ne...

2020-03-28 02:47:06 262 1

空空如也

空空如也

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

TA关注的人

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