Skip to content

STjason/LeetCode-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode by Swift

[LeetCode Online Judge] (https://leetcode.com/) is a website containing many algorithm questions. Most of them are real interview questions of Google, Facebook, LinkedIn, Apple, etc. This repo shows my solutions by Swift and the code style is strictly follow RayWenderlich Swift Style Guide. Please feel free to reference and STAR to support this repo, thank you!

Data Structures

Array

Title Solution Difficulty
Contains Duplicate Swift Easy
Contains Duplicate II Swift Easy
Remove Duplicates from Sorted Array Swift Easy
Remove Duplicates from Sorted Array II Swift Medium
Move Zeroes Swift Easy
Remove Element Swift Easy
Rotate Array Swift Easy
Two Sum Swift Easy
3Sum Swift Medium

String

Title Solution Difficulty
Count and Say Swift Easy

Tree

Title Solution Difficulty
Same Tree Swift Easy
Symmetric Tree Swift Easy
Invert Binary Tree Swift Easy
Minimum Depth of Binary Tree Swift Easy
Maximum Depth of Binary Tree Swift Easy
Balanced Binary Tree Swift Easy
Binary Tree Level Order Traversal Swift Easy
Binary Tree Level Order Traversal II Swift Easy
Binary Tree Zigzag Level Order Traversal Swift Medium
Path Sum Swift Easy
Path Sum II Swift Medium

Math

Title Solution Difficulty
Add Binary Swift Easy
Add Two Numbers Swift Medium
Integer Break Swift Medium

Search

Title Solution Difficulty
Closest Binary Search Tree Value Swift Easy
Search in Rotated Sorted Array Swift Hard
Search in Rotated Sorted Array II Swift Medium
Sqrt(x) Swift Medium

Sort

Title Solution Difficulty
Valid Anagram Swift Easy
Meeting Rooms Swift Easy
Sort Colors Swift Medium
Merge Intervals Swift Hard

About

Solutions to LeetCode by Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%