Skip to content

null1024-ws/Solution-For-Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Solution-For-Leetcode

Index Title Solution Difficulty Tag
1 Two Sum C++ Easy Hash Table
2 Add Two Numbers C++ Medium Linked List
3 Longest Substring Without Repeating Characters C++ Medium Hash Table
4 Median of Two Sorted Arrays C++ Hard Binary Search
5 Longest Palindromic Substring C++ Medium String
6 Zigzag Conversion C++ Medium String
7 Reverse Integer C++ Medium Math
9 Palindrome Number C++ Easy Math
11 Container With Most Water C++ Medium Greedy/Two Pointers
14 Longest Common Prefix C++ Easy String
19 Remove Nth Node From End of List C++ Medium Linked List
21 Merge Two Sorted Lists C++ Easy Linked List
26 Remove Duplicates from Sorted Array C++ Easy Array
27 Remove Element C++ Easy Two Pointers
28 Find the Index of the First Occurrence in a String C++ Medium String Matching
33 Search in Rotated Sorted Array C++ Medium Binary Search
34 Find First and Last Position of Element in Sorted Array C++ Medium
50 Pow(x, n) C++ Medium
60 Permutation Sequence C++ Hard Recursion
62 Unique Paths C++ Medium Dynamic Programming
63 Unique Paths II C++ Medium Dynamic Programming
69 Sqrt(x) C++ Easy
70 Climbing Stairs C++ Easy
88 Merge Sorted Array C++ Easy Array
118 Pascal's Triangle C++ Easy Math
119 Pascal's Triangle II C++ Easy Math
141 Linked List Cycle C++ Easy Linked List
142 Linked List Cycle II C++ Medium Linked List
143 Reorder List C++ Medium Linked List
151 Reverse Words in a String C++ Medium String/Two Pointers
153 Find Minimum in Rotated Sorted Array C++ Medium
154 Find Minimum in Rotated Sorted Array II C++ Hard
160 Intersection of Two Linked Lists C++ Easy Linked List
162 Find Peak Element C++ Medium
167 Two Sum II - Input Array Is Sorted C++ Medium
203 Remove Linked List Elements C++ Easy Linked List
206 Reverse Linked List C++ Easy Linked List
209 Minimum Size Subarray Sum C++ Medium Array
278 First Bad Version C++ Easy
283 Move Zeroes C++ Easy Two Pointers
287 Find the Duplicate Number C++ Medium
328 Odd Even Linked List C++ Medium Linked List
342 Power of Four C++ Easy Recursion
343 Integer Break C++ Medium Math
344 Reverse String C++ Easy Two Pointers
349 Intersection of Two Arrays C++ Easy
350 Intersection of Two Arrays II C++ Easy
367 Valid Perfect Square C++ Easy
374 Guess Number Higher or Lower C++ Easy
410 Split Array Largest Sum C++ Hard
485 Max Consecutive Ones C++ Easy Two Pointers
498 Diagonal Traverse C++ Medium Array
509 Fibonacci Number C++ Easy
557 Reverse Words in a String III C++ Easy String
561 Array Partition C++ Easy Math
658 Find K Closest Elements C++ Medium
670 Maximum Swap C++ Medium Math
704 Binary Search C++ Easy
707 Design Linked List C++ Medium Linked List
719 Find K-th Smallest Pair Distance C++ Hard
744 Find Smallest Letter Greater Than Target C++ Easy
746 Min Cost Climbing Stairs C++ Easy Dynamic Programming
860 Lemonade Change C++ Easy Greedy
915 Partition Array into Disjoint Intervals C++ Medium Array
1281 Subtract the Product and Sum of Digits of an Integer C++ Easy Math
1441 Build an Array With Stack Operations C++ Medium Stack
1470 Shuffle the Array C++ Easy Array
1475 Final Prices With a Special Discount in a Shop C++ Easy Stack
1619 Mean of Array After Removing Some Elements C++ Easy Sorting
1640 Check Array Formation Through Concatenation C++ Easy Array
1652 Defuse the Bomb C++ Easy Array
1662 Check If Two String Arrays are Equivalent C++ Easy String
1678 Goal Parser Interpretation C++ Easy String
1684 Count the Number of Consistent Strings C++ Easy Hash
1768 Merge Strings Alternately C++ Easy String
1773 Count Items Matching a Rule C++ Easy Array
1784 Check if Binary String Has at Most One Segment of Ones C++ Easy String
1796 Second Largest Digit in a String C++ Easy String
1822 Sign of the Product of an Array C++ Easy Array
1827 Minimum Operations to Make the Array Increasing C++ Easy Array
2352 Equal Row and Column Pairs C++ Medium Array
面试题 01.02 Check Permutation LCCI C++ Easy String
面试题 01.08 Zero Matrix LCCI C++ Medium Array
面试题 01.09 String Rotation LCCI C++ Easy String

About

Solution For Leetcode in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published