Skip to content

kuring/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

本项目fork自haoel/leetcode,其中src目录中的小写字母+下划线命名风格的文件为我的源码。

LeetCode:

LeetCode C++ Solutions

Title Solution Difficulty Finish
Contains Duplicate II C++ Easy yes
Contains Duplicate C++ Easy yes
Reverse Linked List C++ Easy yes
Isomorphic Strings C++ Easy yes
Remove Linked List Elements C++ Easy yes
Happy Number C++ Easy yes
House Robber C++ Easy yes
Tenth Line Bash Easy yes
Number of 1 Bits C++ Easy yes
Reverse Bits C++ Easy yes
Rotate Array C++ Easy yes
Factorial Trailing Zeroes C++ Easy yes
Excel Sheet Column Number C++ Easy yes
Two Sum III - Data structure design c++ Easy
Majority Element C++ Easy yes
Excel Sheet Column Title C++ Easy yes
Two Sum II - Input array is sorted C++ Medium
Fraction to Recurring Decimal C++ Medium
Compare Version Numbers C++ Easy yes
Maximum Gap C++ Hard
Missing Ranges C++ Medium
Find Peak Element C++ Medium yes
One Edit Distance C++ Medium
Intersection of Two Linked Lists C++ Easy yes
Longest Substring with At Most Two Distinct Characters C++ Hard
Read N Characters Given Read4 II - Call multiple times C++ Hard
Read N Characters Given Read4 C++ Easy
Binary Tree Upside Down C++ Medium
Min Stack C++ Easy yes
Find Minimum in Rotated Sorted Array II C++ Hard yes
Find Minimum in Rotated Sorted Array C++ Medium yes
Maximum Product Subarray C++ Medium yes
Reverse Words in a String C++ Medium yes
Evaluate Reverse Polish Notation C++ Medium
Max Points on a Line C++ Hard
Sort List C++ Medium yes
Insertion Sort List C++ Medium yes
LRU Cache C++ Hard yes
Binary Tree Postorder Traversal C++ Hard
Binary Tree Preorder Traversal C++ Medium yes
Reorder List C++ Medium yes
Linked List Cycle II C++ Medium yes
Linked List Cycle C++ Medium yes
Word Break II C++ Hard
Word Break C++ Medium
Copy List with Random Pointer C++ Hard
Single Number II C++ Medium From Internet
Single Number C++ Medium yes
Candy C++ Hard
Gas Station C++ Medium
Clone Graph C++ Medium
Palindrome Partitioning II C++ Hard
Palindrome Partitioning C++ Medium
Surrounded Regions C++ Medium
Sum Root to Leaf Numbers C++ Medium
Longest Consecutive Sequence C++ Hard
Word Ladder II C++ Hard
Word Ladder C++ Medium
Valid Palindrome C++ Easy yes
Binary Tree Maximum Path Sum C++ Hard
Best Time to Buy and Sell Stock III C++ Hard
Best Time to Buy and Sell Stock II C++ Medium
Best Time to Buy and Sell Stock C++ Medium
Triangle C++ Medium
Pascal's Triangle II C++ Easy yes
Pascal's Triangle C++ Easy yes
Populating Next Right Pointers in Each Node II C++ Hard
Populating Next Right Pointers in Each Node C++ Medium
Distinct Subsequences C++ Hard
Flatten Binary Tree to Linked List C++ Medium
Path Sum II C++ Medium yes
Path Sum C++ Easy yes
Minimum Depth of Binary Tree C++ Easy yes
Balanced Binary Tree C++ Easy yes
Convert Sorted List to Binary Search Tree C++ Medium
Convert Sorted Array to Binary Search Tree C++ Medium
Binary Tree Level Order Traversal II C++ Easy yes
Construct Binary Tree from Inorder and Postorder Traversal C++ Medium
Construct Binary Tree from Preorder and Inorder Traversal C++ Medium yes
Maximum Depth of Binary Tree C++ Easy yes
Binary Tree Zigzag Level Order Traversal C++ Medium
Binary Tree Level Order Traversal C++ Easy yes
Symmetric Tree C++ Easy yes
Same Tree C++ Easy yes
Recover Binary Search Tree C++ Hard
Validate Binary Search Tree C++ Medium
Interleaving String C++ Hard
Unique Binary Search Trees II C++ Medium yes
Unique Binary Search Trees C++ Medium yes
Binary Tree Inorder Traversal C++ Medium yes
Restore IP Addresses C++ Medium
Reverse Linked List II C++ Medium
Subsets II C++ Medium
Decode Ways C++ Medium yes
Gray Code C++ Medium not do
Merge Sorted Array C++ Easy yes
Scramble String C++ Hard
Partition List C++ Medium yes
Maximal Rectangle C++ Hard
Largest Rectangle in Histogram C++ Hard
Remove Duplicates from Sorted List II C++ Medium yes
Remove Duplicates from Sorted List C++ Easy yes
Search in Rotated Sorted Array II C++ Medium
Remove Duplicates from Sorted Array II C++ Medium yes
Word Search C++ Medium yes
Subsets C++ Medium yes
Combinations C++ Medium yes
Minimum Window Substring C++ Hard
Sort Colors C++ Medium yes
Search a 2D Matrix C++ Medium yes
Set Matrix Zeroes C++ Medium yes
Edit Distance C++ Hard
Simplify Path C++ Medium yes
Climbing Stairs C++ Easy yes
Sqrt(x) C++ Medium yes
Text Justification C++ Hard
Plus One C++ Easy yes
Valid Number C++ Easy
Add Binary C++ Easy yes
Merge Two Sorted Lists C++ Easy
Minimum Path Sum C++ Medium yes
Unique Paths II C++ Medium yes
Unique Paths C++ Medium yes
Rotate List C++ Medium yes
Permutation Sequence C++ Medium yes
Spiral Matrix II C++ Medium yes
Length of Last Word C++ Easy yes
Insert Interval C++ Hard
Merge Intervals C++ Hard
Jump Game C++ Medium
Spiral Matrix C++ Medium yes
Maximum Subarray C++ Medium yes
N-Queens II C++ Hard yes
N-Queens C++ Hard yes
"Pow(x, n)" C++ Medium yes
Anagrams C++ Medium
Rotate Image C++ Medium
Permutations II C++ Hard
Permutations C++ Medium yes
Jump Game II C++ Hard
Wildcard Matching C++ Hard
Multiply Strings C++ Medium yes
Trapping Rain Water C++ Hard
First Missing Positive C++ Hard
Combination Sum II C++ Medium yes
Combination Sum C++ Medium yes
Count and Say C++ Easy yes
Sudoku Solver C++ Hard
Valid Sudoku C++ Easy not do
Search Insert Position C++ Medium yes
Search for a Range C++ Medium yes
Search in Rotated Sorted Array C++ Hard
Longest Valid Parentheses C++ Hard
Next Permutation C++ Medium yes
Substring with Concatenation of All Words C++ Hard
Divide Two Integers C++ Medium
Implement strStr() C++ Easy use normal,not use KMP..
Remove Element C++ Easy yes
Remove Duplicates from Sorted Array C++ Easy yes
Reverse Nodes in k-Group C++ Hard
Swap Nodes in Pairs C++ Medium yes
Merge k Sorted Lists C++ Hard
Generate Parentheses C++ Medium yes
Valid Parentheses C++ Easy yes
Remove Nth Node From End of List C++ Easy yes
Letter Combinations of a Phone Number C++ Medium yes
4Sum C++ Medium
3Sum Closest C++ Medium yes
3Sum C++ Medium yes
Longest Common Prefix C++ Easy yes
Roman to Integer C++ Easy not do
Integer to Roman C++ Medium not do
Container With Most Water C++ Medium not do
Regular Expression Matching C++ Hard
Palindrome Number C++ Easy yes
String to Integer (atoi) C++ Easy yes
Reverse Integer C++ Easy yes
ZigZag Conversion C++ Easy yes
Longest Palindromic Substring C++ Medium yes
Add Two Numbers C++ Medium yes
Longest Substring Without Repeating Characters C++ Medium yes
Median of Two Sorted Arrays C++ Hard
Two Sum C++ Medium yes

About

LeetCode Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.9%
  • Shell 0.1%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy