Skip to content

ShawnFoo/LeetCode_Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode_Algorithms

The solution to problems in LeetCode Algorithms.

Array

Problems Solutions Tags
Two Sum Swift
3Sum Swift Two Pointers
3Sum Closest Swift
Median of Two Sorted Arrays Swift
Container With Most Water Swift
Remove Element Swift Two Pointers
Search Insert Position Swift Binary Search
Search in Rotated Sorted Array Swift Binary Search
Search in Rotated Sorted Array II Swift Binary Search
Find First and Last Position of Element in Sorted Array Swift Binary Search
Best Time to Buy and Sell Stock II Swift Greedy
Jump Game Swift Greedy
Maximum Subarray Swift Divide and Conquer、Dynamic Programming
Unique Paths Swift Dynamic Programming
Plus One Swift Math
Rotate Image Swift
Merge Intervals Swift Sort
Combination Sum Swift Backtracking
Combination Sum II Swift Backtracking
Next Permutation Swift
Subsets Swift Backtrcking、Bit Manipulation
Subsets II Swift Backtrcking
Set Matrix Zeroes Swift
Spiral Matrix Swift
Spiral Matrix II Swift
Sort Colors Swift | JavaScript | C++ Two Pointers、Sort
Minimum Path Sum Swift Dynamic Programming
Search a 2D Matrix Swift Binary Search
Remove Duplicates from Sorted Array Swift Two Pointers
Remove Duplicates from Sorted Array II Swift Two Pointers
Best Time to Buy and Sell Stock Swift Dynamic Programming
Merge Sorted Array Swift Two Pointers
Contains Duplicate Swift Hash Table
Word Search Swift Backtracking
Pascal's Triangle Swift

String

Problems Solutions Tags
Longest Substring Without Repeating Characters Swift | C++ Hash Table、Two Pointers
Longest Palindromic Substring Swift
Longest Common Prefix Swift
ZigZag Conversion Swift
String to Integer (atoi) Swift
Generate Parentheses Swift Backtracking
Implement strStr() Swift Two Pointers
Count and Say Swift
Letter Combinations of a Phone Number Swift Backtracking
Decode Ways Swift Dynamic Programming
Length of Last Word Swift

Linked List

Problems Solutions Tags
Add Two Numbers Swift
Swap Nodes in Pairs Swift
Remove Nth Node From End of List Swift Two Pointers
Remove Duplicates from Sorted List Swift
Remove Duplicates from Sorted List II Swift
Reverse Nodes in k-Group C++
Remove Nth Node From End of List C++ Two Pointer
Reverse Linked List Swift | C++
Reverse Linked List II Swift
Merge k Sorted Lists Swift Divide and Conquer、Heap
Linked List Cycle C++ Two Pointers
Linked List Cycle II C++ Two Pointers
Sort List Swift Sort

Stack

Problems Solutions Tags
Valid Parentheses Swift
Daily Temperatures C++ Stack、Hash Table

Tree

Problems Solutions Tags
Same Tree Swift DFS
Symmetric Tree Swift DFS、BFS
Lowest Common Ancestor of a Binary Search Tree C++
Binary Tree Preorder Traversal Swift Stack
Binary Tree Inorder Traversal Swift Stack
Binary Tree Preorder Traversal Swift Stack
Balanced Binary Tree C++ DFS
Validate Binary Search Tree Swift DFS
Binary Tree Level Order Traversal Swift BFS
Maximum Depth of Binary Tree Swift DFS
Path Sum Swift DFS

Math

Problems Solutions Tags
Reverse Integer Swift
Palindrome Number Swift
Roman to Integer Swift
Integer to Roman Swift
Add Binary Swift String
Pow(x, n) Swift Binary Search
Sqrt(x) Swift Binary Search

Backtracking

Problems Solutions Tags
Permutations Swift
Permutations II Swift
Permutation Sequence Swift Math
Combinations Swift

Hash Table

Problems Solutions
Valid Sudoku Swift
Group Anagrams Swift

Dynamic Programming

Problems Solutions
House Robber Swift
Climbing Stairs Swift

Divide and Conquer

Problems Solutions Tags
Kth Largest Element in an Array Swift Heap

Bit Manipulation

Problems Solutions Tags
Reverse Bits C++

About

The solution to problems in LeetCode Algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published