File tree
474 files changed
+37
-14540
lines changed- .idea
- AdvancedDataStructure
- ClassicalProblem
- Binary_Search
- Design_Pattern
- Dynamic_Programming
- Stack
- Sweep_Line
- Two_Pointer
- CrackingTheCodingInterview
- Check BST
- 像素翻转
- 字符串
- 原串翻转
- 基本字符串压缩
- 确定两串乱序同构
- 确定字符互异
- 空格替换
- 树
- 二叉树平衡
- 最近公共祖先
- 树转链表
- 链表
- 回文链表
- 访问单个节点的删除
- 链式A+B
- 链表中倒数第K个结点
- 链表分割
- DesignPattern
- Leetcode
- #492-Construct the Rectangle
- #506-Relative Ranks
- Array
- #1 Two Sum
- #118-Pascal's Triangle
- #119-Pascal's Triangle II
- #121-Best Time to Buy and Sell Stock
- #163-Missing Ranges
- #167-Two Sum II- Input Array is sorted
- #169-Majority Element
- #229-Majority Element II
- #238-Product of Array Except Self
- #243-Shortest Word Distance
- #277-Find the Celebrity
- #283-Move Zeroes
- #287-Find the Duplicate Number
- #31-Next Permutation
- #41-First Missing Positives
- #414-Third Maximum Number
- #485-Max Consecutive Ones
- #495-Teemo Attacking
- #531-Lonely Pixel I
- #57-Insert Interval
- #581-Shortest Unsorted Continuous Subarray
- Backtracking
- #126-Word Ladder II
- #131-Palindrome Partioning
- #17-Letter Combination of a Phone Number
- #216-Combination Sum III
- #22-Generate Parentheses
- #39-Combination Sum
- #40-Combination Sum II
- #46-Permutations
- #47-Permutations II
- #491-Increasing Subsequences
- #51-N-Queens
- #52-N-Queens II
- #77-Combinations
- #78-Subsets
- #79-Word Search
- #90-Subsets II
- #93-Restore IP addresses
- Binary Search
- #153-Find Minimum in Rotated Sorted Array
- #154-Find Minimum in Rotated Sorted Array II
- #162-Find Peak Element
- #222-Count Complete Tree Nodes
- #278-First Bad Version
- #29-Divide Two Integers
- #302-Smallest Rectangle Enclosing Black Pixels
- #33-Search in Rotated Sorted Array
- #34-Search for Range
- #35-Search Insert Position
- #367-Valid Perfect Square
- #410-Split Array Largest Sum
- #50-Pow(x, n)
- #69-Sqrt(x)
- #81-Search in Rotated Sorted Array II
- Bit Manipulation
- #137-Single Number II
- #190-Reverse Bits
- #191-Number of 1 Bits
- #260-Single Number III
- #342-Power of Four
- #371-Sum of Two Integers
- #461-Hamming Distance
- #476-Number Complement
- Breadth First Search
- #127-Word Ladder
- #130-Surrounded Regions
- #133-Clone Graph
- #200-Number of Islands
- #286-Walls and Gates
- #289-Game of Life
- #310-Minimum Height Trees
- #317-Shortest Distance from All Buildings
- #403-Frog Jump
- #419-Battleships in a Board
- #529-Minesweeper
- Depth-First Search
- #337-House Robber III
- #339-Nested List Weight Sum
- #366-Find Leaves of Binary Tree
- #490-The Maze
- #542-01 Matrix
- #582-Kill Process
- Design
- #146-LRU Cache
- #244-Shortest Word Distance II
- #251-Flatten 2D Vector
- #281-Zigzag Iterator
- #284-Peeking Iterator
- #346-Moving Average from Data Stream
- #359-Logger Rate Limiter
- #380-Insert Delete GetRandom O(1)
- #384-Shuffle an Array
- Divide and Conquer
- #105-Construct Binary Tree from Preorder and Inorder Traversal
- #106-Construct Binary Tree from Inorder and Postorder Traversal
- #108-Convert Sorted Array to Binary Search Tree
- #109-Convert Sorted List to Binary Search Tree
- #4-Median of Two Sorted Arrays
- Draft Question
- #448-Find All numbers disappeared in an Array
- #451-Sort Characters By Frequency
- Dynamic Programming
- #10-Regular Expression Matching
- #120-Triangle
- #121-Best Time to Buy and Sell stock
- #132-Palindrome Partitioning II
- #139-Word Break
- #152-Maximum Product Subarray
- #198-House Robber
- #213-House Robber II
- #221-Maximal Square
- #256-Paint House
- #265-Paint House II
- #279-Perfect Squares
- #300-Longest Increasing Subsequence
- #303-Range Sum Query
- #304-Range Sum Query 2D - Immutable
- #312-Burst Ballons
- #322-Coin Change
- #329-Longest Increasing Path in a Matrix
- #338-Counting Bits
- #368-Largest Divisible Subset
- #377-Combination Sum IV
- #392-Is Subsequence
- #413-Arithmetic Slices
- #416-Partition Equal Subset Sum
- #44-Wildcard Matching
- #45-Jump Game II
- #486-Predict the Winner
- #494-Target Sums
- #5-Longest Palindromic Substring
- #516-Longest Palindromic Subsequence
- #53-Maximum Subarray
- #583-Delete Operations for Two Strings
- #62-Unique Paths
- #63-Unique Paths II
- #64-Minimum Path Sum
- #70-Climbing Stairs
- #72-Edit Distance
- #91-Decode Ways
- #96-Unique Binary Search Trees
- #97-Interleaving String
- Geometry/#587-Erect the Fence
- Greedy
- #122-Best Time to Buy and Sell Stock II
- #134-Gas Station
- #455-Assign Cookies
- #55-Jump Game
- Hash_Table
- #170-Two Sum III-Data Structure Design
- #189-Repeated DNA sequences
- #205-Isomorphic String
- #217-Contains Duplicate
- #219-Contains Duplicate II
- #242-Valid Anagram
- #249-Group Shifted Strings
- #266-Palindrome Permutation
- #288-Unique Word Abbreviation
- #290-Word Pattern
- #299-Bulls and Cows
- #325-Maximum Size Subarray Sum Equals k
- #347-Top K Frequent Elements
- #349-Intersetion of Two Arrays
- #350-Intersection of Two Arrays II
- #409-Longest Palindrome
- #438-Find All Anagrams in a String
- #49-Group Anagrams
- #508-Most Frequent Subtree Sum
- #523-Continuous Subarray Sum
- #609-Find Duplicate File in System
- Heap
- #239-Sliding Window Maximum
- #264-Ugly Number II
- #295-Find Median from Data Stream
- #373-Find K Pairs with Smallest Sums
- #378-Kth Smallest Element in a Sorted Matrix
- #407-Trapping Rain Water II
- Linked List
- #1290-Convert Binary Number in a Linked List to Integer
- #138-Copy List with Random Pointer
- #141-Linked List Cycle
- #142-Linked List Cycle II
- #143-Reorder List
- #147-Insertion Sort List
- #148-Sort List
- #160-Intersection of Two Linked Lists
- #2-Add Two Numbers
- #203-Remove Linked List Elements
- #23-Merge K sorted lists
- #234-Palindrome Linked List
- #237-Delete Node in a Linked List
- #24-Swap Nodes in Pairs
- #25-Reverse Nodes in k-Group
- #328-Odd Even Linked List
- #369-Plus One Linked List
- #379-Design Phone Directory
- #445-Add Two Numbers II
- #61-Rotate List
- #82-Remove Duplicates from Sorted List
- #86-Partition List
- #92-Reverse Linked List II
- Math
- #168-Excel Sheet Column Title
- #171-Excel Sheet Column Number
- #172-Factorial Trailing Zeroes
- #202-Happy Number
- #204-Count Primes
- #223-Rectangle Area
- #231-Power of Two
- #258-Add Digits
- #263-Ugly Number
- #268-Missing Number
- #326-Power of Three
- #342-Power of Four
- #343-Integer Break
- #360-Sort Tranformed Array
- #396-Rotate Function
- #415-Add Strings
- #43-Multiply Strings
- #453-Minimum Moves to Equal Array Elements
- #462-Minimum Moves to Equal Array Elements II
- #504-Base 7
- #507-Perfect Number
- #537-Complex Number Multiplication
- #60-Permutation Sequence
- #67-Add Binary
- #7-Reverse Integer
- #9-Palindrome Number
- Matrix
- #240-Search a 2D Matrix II
- #422-Valid Word Square
- #463-Island Perimeter
- #48-Rotate Image
- #498-Diagonal Traverse
- #54-Spiral Matrix
- #59-Spiral MatirxII
- #73-Set Matrix Zeroes
- Reservoir Sampling
- #382-Linked List Random Node
- #398-Random Pick Index
- Segment Tree/#307-Range Sum Query - Mutable
- Sort
- #179-Largest Number
- #252-Meeting Rooms
- #280-Wiggle Sort
- #524-Longest Word in Dictionary through Deleting
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
474 files changed
+37
-14540
lines changedDiff for: .idea/.gitignore
+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Diff for: .idea/Algorithms.iml
+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Diff for: .idea/misc.xml
+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Diff for: .idea/modules.xml
+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Diff for: .idea/vcs.xml
+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments