Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lexrus/LeetCode.swift

Once upon a time there was a noob of algorithms, and he knew a little about Swift.
https://github.com/lexrus/LeetCode.swift

algorithms leetcode swift

Last synced: about 2 months ago
JSON representation

Once upon a time there was a noob of algorithms, and he knew a little about Swift.

Awesome Lists containing this project

README

        

# LeetCode.swift

![Language](https://img.shields.io/badge/language-Swift%204.2-orange.svg)
![Progress](https://img.shields.io/badge/Progress-65%20%2F%20815%20=%207.98%25-ff69b4.svg)

> 愚者千虑,必有一得。

As an idiot of algorithms,
I make bold to resolve the problems on [LeetCode](https://leetcode.com),
especially, in [Swift](http://www.apple.com/swift/).
Most of the algorithms were __not__ figured out by myself.

``` swift
let 😎 = "Easy", 😐 = "Medium", 😨 = "Hard", ㊙️ = "require premium membership"
```

- [x] 1 😎 [Two Sum](https://leetcode.com/problems/two-sum) [.swift](./Tests/1.swift)
- [x] 2 😐 [Add Two Numbers](https://leetcode.com/problems/add-two-numbers) [.swift](./Tests/2.swift)
- [x] 3 😐 [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters) [.swift](./Tests/3.swift)
- [ ] 4 😨 [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays)
- [x] 5 😐 [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring) [.swift](./Tests/5.swift)
- [x] 6 😐 [ZigZag Conversion](https://leetcode.com/problems/zigzag-conversion) [.swift](./Tests/6.swift)
- [x] 7 😎 [Reverse Integer](https://leetcode.com/problems/reverse-integer) [.swift](./Tests/7.swift)
- [x] 8 😐 [String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi) [.swift](./Tests/8.swift)
- [x] 9 😎 [Palindrome Number](https://leetcode.com/problems/palindrome-number) [.swift](./Tests/9.swift)
- [ ] 10 😨 [Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching)
- [ ] 11 😐 [Container With Most Water](https://leetcode.com/problems/container-with-most-water)
- [x] 12 😐 [Integer to Roman](https://leetcode.com/problems/integer-to-roman) [.swift](./Tests/12.swift)
- [x] 13 😎 [Roman to Integer](https://leetcode.com/problems/roman-to-integer) [.swift](./Tests/13.swift)
- [x] 14 😎 [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix) [.swift](./Tests/14.swift)
- [ ] 15 😐 [3Sum](https://leetcode.com/problems/3sum)
- [ ] 16 😐 [3Sum Closest](https://leetcode.com/problems/3sum-closest)
- [x] 17 😐 [Letter Combinations of a Phone Number](https://leetcode.com/problems/letter-combinations-of-a-phone-number) [.swift](./Tests/17.swift)
- [ ] 18 😐 [4Sum](https://leetcode.com/problems/4sum)
- [x] 19 😐 [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list) [.swift](./Tests/19.swift)
- [x] 20 😎 [Valid Parentheses](https://leetcode.com/problems/valid-parentheses) [.swift](./Tests/20.swift)
- [x] 21 😎 [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists) [.swift](./Tests/21.swift)
- [ ] 22 😐 [Generate Parentheses](https://leetcode.com/problems/generate-parentheses)
- [ ] 23 😨 [Merge k Sorted Lists](https://leetcode.com/problems/merge-k-sorted-lists)
- [ ] 24 😐 [Swap Nodes in Pairs](https://leetcode.com/problems/swap-nodes-in-pairs)
- [ ] 25 😨 [Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group)
- [x] 26 😎 [Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array) [.swift](./Tests/26.swift)
- [x] 27 😎 [Remove Element](https://leetcode.com/problems/remove-element) [.swift](./Tests/27.swift)
- [x] 28 😎 [Implement strStr()](https://leetcode.com/problems/implement-strstr) [.swift](./Tests/28.swift)
- [ ] 29 😐 [Divide Two Integers](https://leetcode.com/problems/divide-two-integers)
- [ ] 30 😨 [Substring with Concatenation of All Words](https://leetcode.com/problems/substring-with-concatenation-of-all-words)
- [ ] 31 😐 [Next Permutation](https://leetcode.com/problems/next-permutation)
- [ ] 32 😨 [Longest Valid Parentheses](https://leetcode.com/problems/longest-valid-parentheses)
- [ ] 33 😐 [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array)
- [ ] 34 😐 [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array)
- [x] 35 😎 [Search Insert Position](https://leetcode.com/problems/search-insert-position) [.swift](./Tests/35.swift)
- [ ] 36 😐 [Valid Sudoku](https://leetcode.com/problems/valid-sudoku)
- [ ] 37 😨 [Sudoku Solver](https://leetcode.com/problems/sudoku-solver)
- [x] 38 😎 [Count and Say](https://leetcode.com/problems/count-and-say) [.swift](./Tests/38.swift)
- [ ] 39 😐 [Combination Sum](https://leetcode.com/problems/combination-sum)
- [ ] 40 😐 [Combination Sum II](https://leetcode.com/problems/combination-sum-ii)
- [ ] 41 😨 [First Missing Positive](https://leetcode.com/problems/first-missing-positive)
- [ ] 42 😨 [Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water)
- [ ] 43 😐 [Multiply Strings](https://leetcode.com/problems/multiply-strings)
- [ ] 44 😨 [Wildcard Matching](https://leetcode.com/problems/wildcard-matching)
- [ ] 45 😨 [Jump Game II](https://leetcode.com/problems/jump-game-ii)
- [ ] 46 😐 [Permutations](https://leetcode.com/problems/permutations)
- [ ] 47 😐 [Permutations II](https://leetcode.com/problems/permutations-ii)
- [ ] 48 😐 [Rotate Image](https://leetcode.com/problems/rotate-image)
- [x] 49 😐 [Group Anagrams](https://leetcode.com/problems/group-anagrams) [.swift](./Tests/49.swift)
- [ ] 50 😐 [Pow(x, n)](https://leetcode.com/problems/powx-n)
- [ ] 51 😨 [N-Queens](https://leetcode.com/problems/n-queens)
- [ ] 52 😨 [N-Queens II](https://leetcode.com/problems/n-queens-ii)
- [ ] 53 😎 [Maximum Subarray](https://leetcode.com/problems/maximum-subarray)
- [ ] 54 😐 [Spiral Matrix](https://leetcode.com/problems/spiral-matrix)
- [ ] 55 😐 [Jump Game](https://leetcode.com/problems/jump-game)
- [ ] 56 😐 [Merge Intervals](https://leetcode.com/problems/merge-intervals)
- [ ] 57 😨 [Insert Interval](https://leetcode.com/problems/insert-interval)
- [x] 58 😎 [Length of Last Word](https://leetcode.com/problems/length-of-last-word) [.swift](./Tests/58.swift)
- [ ] 59 😐 [Spiral Matrix II](https://leetcode.com/problems/spiral-matrix-ii)
- [ ] 60 😐 [Permutation Sequence](https://leetcode.com/problems/permutation-sequence)
- [ ] 61 😐 [Rotate List](https://leetcode.com/problems/rotate-list)
- [ ] 62 😐 [Unique Paths](https://leetcode.com/problems/unique-paths)
- [ ] 63 😐 [Unique Paths II](https://leetcode.com/problems/unique-paths-ii)
- [ ] 64 😐 [Minimum Path Sum](https://leetcode.com/problems/minimum-path-sum)
- [x] 65 😨 [Valid Number](https://leetcode.com/problems/valid-number) [.swift](./Tests/65.swift)
- [x] 66 😎 [Plus One](https://leetcode.com/problems/plus-one) [.swift](./Tests/66.swift)
- [x] 67 😎 [Add Binary](https://leetcode.com/problems/add-binary) [.swift](./Tests/67.swift)
- [ ] 68 😨 [Text Justification](https://leetcode.com/problems/text-justification)
- [ ] 69 😎 [Sqrt(x)](https://leetcode.com/problems/sqrtx)
- [ ] 70 😎 [Climbing Stairs](https://leetcode.com/problems/climbing-stairs)
- [ ] 71 😐 [Simplify Path](https://leetcode.com/problems/simplify-path)
- [ ] 72 😨 [Edit Distance](https://leetcode.com/problems/edit-distance)
- [ ] 73 😐 [Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes)
- [ ] 74 😐 [Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix)
- [ ] 75 😐 [Sort Colors](https://leetcode.com/problems/sort-colors)
- [ ] 76 😨 [Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring)
- [ ] 77 😐 [Combinations](https://leetcode.com/problems/combinations)
- [ ] 78 😐 [Subsets](https://leetcode.com/problems/subsets)
- [ ] 79 😐 [Word Search](https://leetcode.com/problems/word-search)
- [ ] 80 😐 [Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii)
- [ ] 81 😐 [Search in Rotated Sorted Array II](https://leetcode.com/problems/search-in-rotated-sorted-array-ii)
- [x] 82 😐 [Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii) [.swift](./Tests/82.swift)
- [x] 83 😎 [Remove Duplicates from Sorted List](https://leetcode.com/problems/remove-duplicates-from-sorted-list) [.swift](./Tests/83.swift)
- [ ] 84 😨 [Largest Rectangle in Histogram](https://leetcode.com/problems/largest-rectangle-in-histogram)
- [ ] 85 😨 [Maximal Rectangle](https://leetcode.com/problems/maximal-rectangle)
- [ ] 86 😐 [Partition List](https://leetcode.com/problems/partition-list)
- [ ] 87 😨 [Scramble String](https://leetcode.com/problems/scramble-string)
- [x] 88 😎 [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array) [.swift](./Tests/88.swift)
- [ ] 89 😐 [Gray Code](https://leetcode.com/problems/gray-code)
- [ ] 90 😐 [Subsets II](https://leetcode.com/problems/subsets-ii)
- [ ] 91 😐 [Decode Ways](https://leetcode.com/problems/decode-ways)
- [ ] 92 😐 [Reverse Linked List II](https://leetcode.com/problems/reverse-linked-list-ii)
- [ ] 93 😐 [Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses)
- [ ] 94 😐 [Binary Tree Inorder Traversal](https://leetcode.com/problems/binary-tree-inorder-traversal)
- [ ] 95 😐 [Unique Binary Search Trees II](https://leetcode.com/problems/unique-binary-search-trees-ii)
- [ ] 96 😐 [Unique Binary Search Trees](https://leetcode.com/problems/unique-binary-search-trees)
- [ ] 97 😨 [Interleaving String](https://leetcode.com/problems/interleaving-string)
- [ ] 98 😐 [Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree)
- [ ] 99 😨 [Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree)
- [x] 100 😎 [Same Tree](https://leetcode.com/problems/same-tree) [.swift](./Tests/100.swift)
- [x] 101 😎 [Symmetric Tree](https://leetcode.com/problems/symmetric-tree) [.swift](./Tests/101.swift)
- [ ] 102 😐 [Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal)
- [ ] 103 😐 [Binary Tree Zigzag Level Order Traversal](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal)
- [x] 104 😎 [Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree) [.swift](./Tests/104.swift)
- [ ] 105 😐 [Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal)
- [ ] 106 😐 [Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal)
- [ ] 107 😎 [Binary Tree Level Order Traversal II](https://leetcode.com/problems/binary-tree-level-order-traversal-ii)
- [ ] 108 😎 [Convert Sorted Array to Binary Search Tree](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree)
- [ ] 109 😐 [Convert Sorted List to Binary Search Tree](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree)
- [x] 110 😎 [Balanced Binary Tree](https://leetcode.com/problems/balanced-binary-tree) [.swift](./Tests/110.swift)
- [x] 111 😎 [Minimum Depth of Binary Tree](https://leetcode.com/problems/minimum-depth-of-binary-tree) [.swift](./Tests/111.swift)
- [ ] 112 😎 [Path Sum](https://leetcode.com/problems/path-sum)
- [ ] 113 😐 [Path Sum II](https://leetcode.com/problems/path-sum-ii)
- [x] 114 😐 [Flatten Binary Tree to Linked List](https://leetcode.com/problems/flatten-binary-tree-to-linked-list) [.swift](./Tests/114.swift)
- [ ] 115 😨 [Distinct Subsequences](https://leetcode.com/problems/distinct-subsequences)
- [ ] 116 😐 [Populating Next Right Pointers in Each Node](https://leetcode.com/problems/populating-next-right-pointers-in-each-node)
- [ ] 117 😐 [Populating Next Right Pointers in Each Node II](https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii)
- [ ] 118 😎 [Pascal's Triangle](https://leetcode.com/problems/pascals-triangle)
- [ ] 119 😎 [Pascal's Triangle II](https://leetcode.com/problems/pascals-triangle-ii)
- [ ] 120 😐 [Triangle](https://leetcode.com/problems/triangle)
- [ ] 121 😎 [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock)
- [ ] 122 😎 [Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii)
- [ ] 123 😨 [Best Time to Buy and Sell Stock III](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii)
- [ ] 124 😨 [Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum)
- [ ] 125 😎 [Valid Palindrome](https://leetcode.com/problems/valid-palindrome)
- [ ] 126 😨 [Word Ladder II](https://leetcode.com/problems/word-ladder-ii)
- [ ] 127 😐 [Word Ladder](https://leetcode.com/problems/word-ladder)
- [ ] 128 😨 [Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence)
- [ ] 129 😐 [Sum Root to Leaf Numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers)
- [ ] 130 😐 [Surrounded Regions](https://leetcode.com/problems/surrounded-regions)
- [ ] 131 😐 [Palindrome Partitioning](https://leetcode.com/problems/palindrome-partitioning)
- [ ] 132 😨 [Palindrome Partitioning II](https://leetcode.com/problems/palindrome-partitioning-ii)
- [ ] 133 😐 [Clone Graph](https://leetcode.com/problems/clone-graph)
- [ ] 134 😐 [Gas Station](https://leetcode.com/problems/gas-station)
- [ ] 135 😨 [Candy](https://leetcode.com/problems/candy)
- [x] 136 😎 [Single Number](https://leetcode.com/problems/single-number) [.swift](./Tests/136.swift)
- [ ] 137 😐 [Single Number II](https://leetcode.com/problems/single-number-ii)
- [ ] 138 😐 [Copy List with Random Pointer](https://leetcode.com/problems/copy-list-with-random-pointer)
- [ ] 139 😐 [Word Break](https://leetcode.com/problems/word-break)
- [ ] 140 😨 [Word Break II](https://leetcode.com/problems/word-break-ii)
- [ ] 141 😎 [Linked List Cycle](https://leetcode.com/problems/linked-list-cycle)
- [ ] 142 😐 [Linked List Cycle II](https://leetcode.com/problems/linked-list-cycle-ii)
- [ ] 143 😐 [Reorder List](https://leetcode.com/problems/reorder-list)
- [ ] 144 😐 [Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal)
- [ ] 145 😨 [Binary Tree Postorder Traversal](https://leetcode.com/problems/binary-tree-postorder-traversal)
- [ ] 146 😨 [LRU Cache](https://leetcode.com/problems/lru-cache)
- [ ] 147 😐 [Insertion Sort List](https://leetcode.com/problems/insertion-sort-list)
- [ ] 148 😐 [Sort List](https://leetcode.com/problems/sort-list)
- [ ] 149 😨 [Max Points on a Line](https://leetcode.com/problems/max-points-on-a-line)
- [ ] 150 😐 [Evaluate Reverse Polish Notation](https://leetcode.com/problems/evaluate-reverse-polish-notation)
- [ ] 151 😐 [Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string)
- [ ] 152 😐 [Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray)
- [ ] 153 😐 [Find Minimum in Rotated Sorted Array](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array)
- [ ] 154 😨 [Find Minimum in Rotated Sorted Array II](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii)
- [x] 155 😎 [Min Stack](https://leetcode.com/problems/min-stack) [.swift](./Tests/155.swift)
- [ ] 156 😐 [Binary Tree Upside Down](https://leetcode.com/problems/binary-tree-upside-down) ㊙️
- [ ] 157 😎 [Read N Characters Given Read4](https://leetcode.com/problems/read-n-characters-given-read4) ㊙️
- [ ] 158 😨 [Read N Characters Given Read4 II - Call multiple times](https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times) ㊙️
- [ ] 159 😨 [Longest Substring with At Most Two Distinct Characters](https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters) ㊙️
- [ ] 160 😎 [Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists)
- [ ] 161 😐 [One Edit Distance](https://leetcode.com/problems/one-edit-distance) ㊙️
- [ ] 162 😐 [Find Peak Element](https://leetcode.com/problems/find-peak-element)
- [ ] 163 😐 [Missing Ranges](https://leetcode.com/problems/missing-ranges) ㊙️
- [ ] 164 😨 [Maximum Gap](https://leetcode.com/problems/maximum-gap)
- [x] 165 😐 [Compare Version Numbers](https://leetcode.com/problems/compare-version-numbers) [.swift](./Tests/165.swift)
- [ ] 166 😐 [Fraction to Recurring Decimal](https://leetcode.com/problems/fraction-to-recurring-decimal)
- [ ] 167 😎 [Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted)
- [ ] 168 😎 [Excel Sheet Column Title](https://leetcode.com/problems/excel-sheet-column-title)
- [ ] 169 😎 [Majority Element](https://leetcode.com/problems/majority-element)
- [ ] 170 😎 [Two Sum III - Data structure design](https://leetcode.com/problems/two-sum-iii-data-structure-design) ㊙️
- [ ] 171 😎 [Excel Sheet Column Number](https://leetcode.com/problems/excel-sheet-column-number)
- [ ] 172 😎 [Factorial Trailing Zeroes](https://leetcode.com/problems/factorial-trailing-zeroes)
- [ ] 173 😐 [Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator)
- [ ] 174 😨 [Dungeon Game](https://leetcode.com/problems/dungeon-game)
- [ ] 179 😐 [Largest Number](https://leetcode.com/problems/largest-number)
- [ ] 186 😐 [Reverse Words in a String II](https://leetcode.com/problems/reverse-words-in-a-string-ii) ㊙️
- [ ] 187 😐 [Repeated DNA Sequences](https://leetcode.com/problems/repeated-dna-sequences)
- [ ] 188 😨 [Best Time to Buy and Sell Stock IV](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv)
- [x] 189 😎 [Rotate Array](https://leetcode.com/problems/rotate-array) [.swift](./Tests/189.swift)
- [ ] 190 😎 [Reverse Bits](https://leetcode.com/problems/reverse-bits)
- [ ] 191 😎 [Number of 1 Bits](https://leetcode.com/problems/number-of-1-bits)
- [ ] 198 😎 [House Robber](https://leetcode.com/problems/house-robber)
- [ ] 199 😐 [Binary Tree Right Side View](https://leetcode.com/problems/binary-tree-right-side-view)
- [ ] 200 😐 [Number of Islands](https://leetcode.com/problems/number-of-islands)
- [ ] 201 😐 [Bitwise AND of Numbers Range](https://leetcode.com/problems/bitwise-and-of-numbers-range)
- [ ] 202 😎 [Happy Number](https://leetcode.com/problems/happy-number)
- [ ] 203 😎 [Remove Linked List Elements](https://leetcode.com/problems/remove-linked-list-elements)
- [ ] 204 😎 [Count Primes](https://leetcode.com/problems/count-primes)
- [ ] 205 😎 [Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings)
- [ ] 206 😎 [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list)
- [ ] 207 😐 [Course Schedule](https://leetcode.com/problems/course-schedule)
- [ ] 208 😐 [Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree)
- [ ] 209 😐 [Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum)
- [ ] 210 😐 [Course Schedule II](https://leetcode.com/problems/course-schedule-ii)
- [ ] 211 😐 [Add and Search Word - Data structure design](https://leetcode.com/problems/add-and-search-word-data-structure-design)
- [ ] 212 😨 [Word Search II](https://leetcode.com/problems/word-search-ii)
- [ ] 213 😐 [House Robber II](https://leetcode.com/problems/house-robber-ii)
- [ ] 214 😨 [Shortest Palindrome](https://leetcode.com/problems/shortest-palindrome)
- [ ] 215 😐 [Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array)
- [ ] 216 😐 [Combination Sum III](https://leetcode.com/problems/combination-sum-iii)
- [ ] 217 😎 [Contains Duplicate](https://leetcode.com/problems/contains-duplicate)
- [ ] 218 😨 [The Skyline Problem](https://leetcode.com/problems/the-skyline-problem)
- [ ] 219 😎 [Contains Duplicate II](https://leetcode.com/problems/contains-duplicate-ii)
- [ ] 220 😐 [Contains Duplicate III](https://leetcode.com/problems/contains-duplicate-iii)
- [ ] 221 😐 [Maximal Square](https://leetcode.com/problems/maximal-square)
- [ ] 222 😐 [Count Complete Tree Nodes](https://leetcode.com/problems/count-complete-tree-nodes)
- [ ] 223 😐 [Rectangle Area](https://leetcode.com/problems/rectangle-area)
- [ ] 224 😨 [Basic Calculator](https://leetcode.com/problems/basic-calculator)
- [ ] 225 😎 [Implement Stack using Queues](https://leetcode.com/problems/implement-stack-using-queues)
- [x] 226 😎 [Invert Binary Tree](https://leetcode.com/problems/invert-binary-tree) [.swift](./Tests/226.swift)
- [ ] 227 😐 [Basic Calculator II](https://leetcode.com/problems/basic-calculator-ii)
- [ ] 228 😐 [Summary Ranges](https://leetcode.com/problems/summary-ranges)
- [ ] 229 😐 [Majority Element II](https://leetcode.com/problems/majority-element-ii)
- [ ] 230 😐 [Kth Smallest Element in a BST](https://leetcode.com/problems/kth-smallest-element-in-a-bst)
- [ ] 231 😎 [Power of Two](https://leetcode.com/problems/power-of-two)
- [ ] 232 😎 [Implement Queue using Stacks](https://leetcode.com/problems/implement-queue-using-stacks)
- [ ] 233 😨 [Number of Digit One](https://leetcode.com/problems/number-of-digit-one)
- [ ] 234 😎 [Palindrome Linked List](https://leetcode.com/problems/palindrome-linked-list)
- [ ] 235 😎 [Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree)
- [ ] 236 😐 [Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree)
- [ ] 237 😎 [Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list)
- [ ] 238 😐 [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self)
- [ ] 239 😨 [Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum)
- [ ] 240 😐 [Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii)
- [ ] 241 😐 [Different Ways to Add Parentheses](https://leetcode.com/problems/different-ways-to-add-parentheses)
- [x] 242 😎 [Valid Anagram](https://leetcode.com/problems/valid-anagram) [.swift](./Tests/242.swift)
- [ ] 243 😎 [Shortest Word Distance](https://leetcode.com/problems/shortest-word-distance) ㊙️
- [ ] 244 😐 [Shortest Word Distance II](https://leetcode.com/problems/shortest-word-distance-ii) ㊙️
- [ ] 245 😐 [Shortest Word Distance III](https://leetcode.com/problems/shortest-word-distance-iii) ㊙️
- [ ] 246 😎 [Strobogrammatic Number](https://leetcode.com/problems/strobogrammatic-number) ㊙️
- [ ] 247 😐 [Strobogrammatic Number II](https://leetcode.com/problems/strobogrammatic-number-ii) ㊙️
- [ ] 248 😨 [Strobogrammatic Number III](https://leetcode.com/problems/strobogrammatic-number-iii) ㊙️
- [ ] 249 😐 [Group Shifted Strings](https://leetcode.com/problems/group-shifted-strings) ㊙️
- [ ] 250 😐 [Count Univalue Subtrees](https://leetcode.com/problems/count-univalue-subtrees) ㊙️
- [ ] 251 😐 [Flatten 2D Vector](https://leetcode.com/problems/flatten-2d-vector) ㊙️
- [ ] 252 😎 [Meeting Rooms](https://leetcode.com/problems/meeting-rooms) ㊙️
- [ ] 253 😐 [Meeting Rooms II](https://leetcode.com/problems/meeting-rooms-ii) ㊙️
- [ ] 254 😐 [Factor Combinations](https://leetcode.com/problems/factor-combinations) ㊙️
- [ ] 255 😐 [Verify Preorder Sequence in Binary Search Tree](https://leetcode.com/problems/verify-preorder-sequence-in-binary-search-tree) ㊙️
- [ ] 256 😎 [Paint House](https://leetcode.com/problems/paint-house) ㊙️
- [ ] 257 😎 [Binary Tree Paths](https://leetcode.com/problems/binary-tree-paths)
- [x] 258 😎 [Add Digits](https://leetcode.com/problems/add-digits) [.swift](./Tests/258.swift)
- [ ] 259 😐 [3Sum Smaller](https://leetcode.com/problems/3sum-smaller) ㊙️
- [ ] 260 😐 [Single Number III](https://leetcode.com/problems/single-number-iii)
- [ ] 261 😐 [Graph Valid Tree](https://leetcode.com/problems/graph-valid-tree) ㊙️
- [x] 263 😎 [Ugly Number](https://leetcode.com/problems/ugly-number) [.swift](./Tests/263.swift)
- [ ] 264 😐 [Ugly Number II](https://leetcode.com/problems/ugly-number-ii)
- [ ] 265 😨 [Paint House II](https://leetcode.com/problems/paint-house-ii) ㊙️
- [ ] 266 😎 [Palindrome Permutation](https://leetcode.com/problems/palindrome-permutation) ㊙️
- [ ] 267 😐 [Palindrome Permutation II](https://leetcode.com/problems/palindrome-permutation-ii) ㊙️
- [x] 268 😎 [Missing Number](https://leetcode.com/problems/missing-number) [.swift](./Tests/268.swift)
- [ ] 269 😨 [Alien Dictionary](https://leetcode.com/problems/alien-dictionary) ㊙️
- [ ] 270 😎 [Closest Binary Search Tree Value](https://leetcode.com/problems/closest-binary-search-tree-value) ㊙️
- [ ] 271 😐 [Encode and Decode Strings](https://leetcode.com/problems/encode-and-decode-strings) ㊙️
- [ ] 272 😨 [Closest Binary Search Tree Value II](https://leetcode.com/problems/closest-binary-search-tree-value-ii) ㊙️
- [ ] 273 😨 [Integer to English Words](https://leetcode.com/problems/integer-to-english-words)
- [ ] 274 😐 [H-Index](https://leetcode.com/problems/h-index)
- [ ] 275 😐 [H-Index II](https://leetcode.com/problems/h-index-ii)
- [ ] 276 😎 [Paint Fence](https://leetcode.com/problems/paint-fence) ㊙️
- [ ] 277 😐 [Find the Celebrity](https://leetcode.com/problems/find-the-celebrity) ㊙️
- [ ] 278 😎 [First Bad Version](https://leetcode.com/problems/first-bad-version)
- [ ] 279 😐 [Perfect Squares](https://leetcode.com/problems/perfect-squares)
- [ ] 280 😐 [Wiggle Sort](https://leetcode.com/problems/wiggle-sort) ㊙️
- [ ] 281 😐 [Zigzag Iterator](https://leetcode.com/problems/zigzag-iterator) ㊙️
- [ ] 282 😨 [Expression Add Operators](https://leetcode.com/problems/expression-add-operators)
- [x] 283 😎 [Move Zeroes](https://leetcode.com/problems/move-zeroes) [.swift](./Tests/283.swift)
- [ ] 284 😐 [Peeking Iterator](https://leetcode.com/problems/peeking-iterator)
- [ ] 285 😐 [Inorder Successor in BST](https://leetcode.com/problems/inorder-successor-in-bst) ㊙️
- [ ] 286 😐 [Walls and Gates](https://leetcode.com/problems/walls-and-gates) ㊙️
- [ ] 287 😐 [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number)
- [ ] 288 😐 [Unique Word Abbreviation](https://leetcode.com/problems/unique-word-abbreviation) ㊙️
- [ ] 289 😐 [Game of Life](https://leetcode.com/problems/game-of-life)
- [ ] 290 😎 [Word Pattern](https://leetcode.com/problems/word-pattern)
- [ ] 291 😨 [Word Pattern II](https://leetcode.com/problems/word-pattern-ii) ㊙️
- [ ] 292 😎 [Nim Game](https://leetcode.com/problems/nim-game)
- [ ] 293 😎 [Flip Game](https://leetcode.com/problems/flip-game) ㊙️
- [ ] 294 😐 [Flip Game II](https://leetcode.com/problems/flip-game-ii) ㊙️
- [ ] 295 😨 [Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream)
- [ ] 296 😨 [Best Meeting Point](https://leetcode.com/problems/best-meeting-point) ㊙️
- [ ] 297 😨 [Serialize and Deserialize Binary Tree](https://leetcode.com/problems/serialize-and-deserialize-binary-tree)
- [ ] 298 😐 [Binary Tree Longest Consecutive Sequence](https://leetcode.com/problems/binary-tree-longest-consecutive-sequence) ㊙️
- [ ] 299 😐 [Bulls and Cows](https://leetcode.com/problems/bulls-and-cows)
- [ ] 300 😐 [Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence)
- [ ] 301 😨 [Remove Invalid Parentheses](https://leetcode.com/problems/remove-invalid-parentheses)
- [ ] 302 😨 [Smallest Rectangle Enclosing Black Pixels](https://leetcode.com/problems/smallest-rectangle-enclosing-black-pixels) ㊙️
- [ ] 303 😎 [Range Sum Query - Immutable](https://leetcode.com/problems/range-sum-query-immutable)
- [ ] 304 😐 [Range Sum Query 2D - Immutable](https://leetcode.com/problems/range-sum-query-2d-immutable)
- [ ] 305 😨 [Number of Islands II](https://leetcode.com/problems/number-of-islands-ii) ㊙️
- [ ] 306 😐 [Additive Number](https://leetcode.com/problems/additive-number)
- [ ] 307 😐 [Range Sum Query - Mutable](https://leetcode.com/problems/range-sum-query-mutable)
- [ ] 308 😨 [Range Sum Query 2D - Mutable](https://leetcode.com/problems/range-sum-query-2d-mutable) ㊙️
- [ ] 309 😐 [Best Time to Buy and Sell Stock with Cooldown](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown)
- [ ] 310 😐 [Minimum Height Trees](https://leetcode.com/problems/minimum-height-trees)
- [ ] 311 😐 [Sparse Matrix Multiplication](https://leetcode.com/problems/sparse-matrix-multiplication) ㊙️
- [ ] 312 😨 [Burst Balloons](https://leetcode.com/problems/burst-balloons)
- [ ] 313 😐 [Super Ugly Number](https://leetcode.com/problems/super-ugly-number)
- [ ] 314 😐 [Binary Tree Vertical Order Traversal](https://leetcode.com/problems/binary-tree-vertical-order-traversal) ㊙️
- [ ] 315 😨 [Count of Smaller Numbers After Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self)
- [ ] 316 😨 [Remove Duplicate Letters](https://leetcode.com/problems/remove-duplicate-letters)
- [ ] 317 😨 [Shortest Distance from All Buildings](https://leetcode.com/problems/shortest-distance-from-all-buildings) ㊙️
- [ ] 318 😐 [Maximum Product of Word Lengths](https://leetcode.com/problems/maximum-product-of-word-lengths)
- [ ] 319 😐 [Bulb Switcher](https://leetcode.com/problems/bulb-switcher)
- [ ] 320 😐 [Generalized Abbreviation](https://leetcode.com/problems/generalized-abbreviation) ㊙️
- [ ] 321 😨 [Create Maximum Number](https://leetcode.com/problems/create-maximum-number)
- [ ] 322 😐 [Coin Change](https://leetcode.com/problems/coin-change)
- [ ] 323 😐 [Number of Connected Components in an Undirected Graph](https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph) ㊙️
- [ ] 324 😐 [Wiggle Sort II](https://leetcode.com/problems/wiggle-sort-ii)
- [ ] 325 😐 [Maximum Size Subarray Sum Equals k](https://leetcode.com/problems/maximum-size-subarray-sum-equals-k) ㊙️
- [x] 326 😎 [Power of Three](https://leetcode.com/problems/power-of-three) [.swift](./Tests/326.swift)
- [ ] 327 😨 [Count of Range Sum](https://leetcode.com/problems/count-of-range-sum)
- [ ] 328 😐 [Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list)
- [ ] 329 😨 [Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix)
- [ ] 330 😨 [Patching Array](https://leetcode.com/problems/patching-array)
- [ ] 331 😐 [Verify Preorder Serialization of a Binary Tree](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree)
- [ ] 332 😐 [Reconstruct Itinerary](https://leetcode.com/problems/reconstruct-itinerary)
- [ ] 333 😐 [Largest BST Subtree](https://leetcode.com/problems/largest-bst-subtree) ㊙️
- [ ] 334 😐 [Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence)
- [ ] 335 😨 [Self Crossing](https://leetcode.com/problems/self-crossing)
- [ ] 336 😨 [Palindrome Pairs](https://leetcode.com/problems/palindrome-pairs)
- [ ] 337 😐 [House Robber III](https://leetcode.com/problems/house-robber-iii)
- [ ] 338 😐 [Counting Bits](https://leetcode.com/problems/counting-bits)
- [ ] 339 😎 [Nested List Weight Sum](https://leetcode.com/problems/nested-list-weight-sum) ㊙️
- [ ] 340 😨 [Longest Substring with At Most K Distinct Characters](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters) ㊙️
- [ ] 341 😐 [Flatten Nested List Iterator](https://leetcode.com/problems/flatten-nested-list-iterator)
- [ ] 342 😎 [Power of Four](https://leetcode.com/problems/power-of-four)
- [ ] 343 😐 [Integer Break](https://leetcode.com/problems/integer-break)
- [ ] 344 😎 [Reverse String](https://leetcode.com/problems/reverse-string)
- [ ] 345 😎 [Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string)
- [ ] 346 😎 [Moving Average from Data Stream](https://leetcode.com/problems/moving-average-from-data-stream) ㊙️
- [ ] 347 😐 [Top K Frequent Elements](https://leetcode.com/problems/top-k-frequent-elements)
- [ ] 348 😐 [Design Tic-Tac-Toe](https://leetcode.com/problems/design-tic-tac-toe) ㊙️
- [ ] 349 😎 [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays)
- [ ] 350 😎 [Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii)
- [ ] 351 😐 [Android Unlock Patterns](https://leetcode.com/problems/android-unlock-patterns) ㊙️
- [ ] 352 😨 [Data Stream as Disjoint Intervals](https://leetcode.com/problems/data-stream-as-disjoint-intervals)
- [ ] 353 😐 [Design Snake Game](https://leetcode.com/problems/design-snake-game) ㊙️
- [ ] 354 😨 [Russian Doll Envelopes](https://leetcode.com/problems/russian-doll-envelopes)
- [ ] 355 😐 [Design Twitter](https://leetcode.com/problems/design-twitter)
- [ ] 356 😐 [Line Reflection](https://leetcode.com/problems/line-reflection) ㊙️
- [ ] 357 😐 [Count Numbers with Unique Digits](https://leetcode.com/problems/count-numbers-with-unique-digits)
- [ ] 358 😨 [Rearrange String k Distance Apart](https://leetcode.com/problems/rearrange-string-k-distance-apart) ㊙️
- [ ] 359 😎 [Logger Rate Limiter](https://leetcode.com/problems/logger-rate-limiter) ㊙️
- [ ] 360 😐 [Sort Transformed Array](https://leetcode.com/problems/sort-transformed-array) ㊙️
- [ ] 361 😐 [Bomb Enemy](https://leetcode.com/problems/bomb-enemy) ㊙️
- [ ] 362 😐 [Design Hit Counter](https://leetcode.com/problems/design-hit-counter) ㊙️
- [ ] 363 😨 [Max Sum of Rectangle No Larger Than K](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k)
- [ ] 364 😐 [Nested List Weight Sum II](https://leetcode.com/problems/nested-list-weight-sum-ii) ㊙️
- [ ] 365 😐 [Water and Jug Problem](https://leetcode.com/problems/water-and-jug-problem)
- [ ] 366 😐 [Find Leaves of Binary Tree](https://leetcode.com/problems/find-leaves-of-binary-tree) ㊙️
- [ ] 367 😎 [Valid Perfect Square](https://leetcode.com/problems/valid-perfect-square)
- [ ] 368 😐 [Largest Divisible Subset](https://leetcode.com/problems/largest-divisible-subset)
- [ ] 369 😐 [Plus One Linked List](https://leetcode.com/problems/plus-one-linked-list) ㊙️
- [ ] 370 😐 [Range Addition](https://leetcode.com/problems/range-addition) ㊙️
- [ ] 371 😎 [Sum of Two Integers](https://leetcode.com/problems/sum-of-two-integers)
- [ ] 372 😐 [Super Pow](https://leetcode.com/problems/super-pow)
- [ ] 373 😐 [Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums)
- [ ] 374 😎 [Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower)
- [ ] 375 😐 [Guess Number Higher or Lower II](https://leetcode.com/problems/guess-number-higher-or-lower-ii)
- [ ] 376 😐 [Wiggle Subsequence](https://leetcode.com/problems/wiggle-subsequence)
- [ ] 377 😐 [Combination Sum IV](https://leetcode.com/problems/combination-sum-iv)
- [ ] 378 😐 [Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix)
- [ ] 379 😐 [Design Phone Directory](https://leetcode.com/problems/design-phone-directory) ㊙️
- [ ] 380 😐 [Insert Delete GetRandom O(1)](https://leetcode.com/problems/insert-delete-getrandom-o1)
- [ ] 381 😨 [Insert Delete GetRandom O(1) - Duplicates allowed](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed)
- [ ] 382 😐 [Linked List Random Node](https://leetcode.com/problems/linked-list-random-node)
- [ ] 383 😎 [Ransom Note](https://leetcode.com/problems/ransom-note)
- [ ] 384 😐 [Shuffle an Array](https://leetcode.com/problems/shuffle-an-array)
- [ ] 385 😐 [Mini Parser](https://leetcode.com/problems/mini-parser)
- [ ] 386 😐 [Lexicographical Numbers](https://leetcode.com/problems/lexicographical-numbers)
- [ ] 387 😎 [First Unique Character in a String](https://leetcode.com/problems/first-unique-character-in-a-string)
- [ ] 388 😐 [Longest Absolute File Path](https://leetcode.com/problems/longest-absolute-file-path)
- [ ] 389 😎 [Find the Difference](https://leetcode.com/problems/find-the-difference)
- [ ] 390 😐 [Elimination Game](https://leetcode.com/problems/elimination-game)
- [ ] 391 😨 [Perfect Rectangle](https://leetcode.com/problems/perfect-rectangle)
- [ ] 392 😐 [Is Subsequence](https://leetcode.com/problems/is-subsequence)
- [ ] 393 😐 [UTF-8 Validation](https://leetcode.com/problems/utf-8-validation)
- [ ] 394 😐 [Decode String](https://leetcode.com/problems/decode-string)
- [ ] 395 😐 [Longest Substring with At Least K Repeating Characters](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters)
- [ ] 396 😐 [Rotate Function](https://leetcode.com/problems/rotate-function)
- [ ] 397 😐 [Integer Replacement](https://leetcode.com/problems/integer-replacement)
- [ ] 398 😐 [Random Pick Index](https://leetcode.com/problems/random-pick-index)
- [ ] 399 😐 [Evaluate Division](https://leetcode.com/problems/evaluate-division)
- [ ] 400 😎 [Nth Digit](https://leetcode.com/problems/nth-digit)
- [ ] 401 😎 [Binary Watch](https://leetcode.com/problems/binary-watch)
- [ ] 402 😐 [Remove K Digits](https://leetcode.com/problems/remove-k-digits)
- [ ] 403 😨 [Frog Jump](https://leetcode.com/problems/frog-jump)
- [ ] 404 😎 [Sum of Left Leaves](https://leetcode.com/problems/sum-of-left-leaves)
- [ ] 405 😎 [Convert a Number to Hexadecimal](https://leetcode.com/problems/convert-a-number-to-hexadecimal)
- [ ] 406 😐 [Queue Reconstruction by Height](https://leetcode.com/problems/queue-reconstruction-by-height)
- [ ] 407 😨 [Trapping Rain Water II](https://leetcode.com/problems/trapping-rain-water-ii)
- [ ] 408 😎 [Valid Word Abbreviation](https://leetcode.com/problems/valid-word-abbreviation) ㊙️
- [ ] 409 😎 [Longest Palindrome](https://leetcode.com/problems/longest-palindrome)
- [ ] 410 😨 [Split Array Largest Sum](https://leetcode.com/problems/split-array-largest-sum)
- [ ] 411 😨 [Minimum Unique Word Abbreviation](https://leetcode.com/problems/minimum-unique-word-abbreviation) ㊙️
- [ ] 412 😎 [Fizz Buzz](https://leetcode.com/problems/fizz-buzz)
- [ ] 413 😐 [Arithmetic Slices](https://leetcode.com/problems/arithmetic-slices)
- [ ] 414 😎 [Third Maximum Number](https://leetcode.com/problems/third-maximum-number)
- [ ] 415 😎 [Add Strings](https://leetcode.com/problems/add-strings)
- [ ] 416 😐 [Partition Equal Subset Sum](https://leetcode.com/problems/partition-equal-subset-sum)
- [ ] 417 😐 [Pacific Atlantic Water Flow](https://leetcode.com/problems/pacific-atlantic-water-flow)
- [ ] 418 😐 [Sentence Screen Fitting](https://leetcode.com/problems/sentence-screen-fitting) ㊙️
- [ ] 419 😐 [Battleships in a Board](https://leetcode.com/problems/battleships-in-a-board)
- [ ] 420 😨 [Strong Password Checker](https://leetcode.com/problems/strong-password-checker)
- [ ] 421 😐 [Maximum XOR of Two Numbers in an Array](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array)
- [ ] 422 😎 [Valid Word Square](https://leetcode.com/problems/valid-word-square) ㊙️
- [ ] 423 😐 [Reconstruct Original Digits from English](https://leetcode.com/problems/reconstruct-original-digits-from-english)
- [ ] 424 😐 [Longest Repeating Character Replacement](https://leetcode.com/problems/longest-repeating-character-replacement)
- [ ] 425 😨 [Word Squares](https://leetcode.com/problems/word-squares) ㊙️
- [ ] 432 😨 [All O`one Data Structure](https://leetcode.com/problems/all-oone-data-structure)
- [ ] 433 😐 [Minimum Genetic Mutation](https://leetcode.com/problems/minimum-genetic-mutation)
- [ ] 434 😎 [Number of Segments in a String](https://leetcode.com/problems/number-of-segments-in-a-string)
- [ ] 435 😐 [Non-overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals)
- [ ] 436 😐 [Find Right Interval](https://leetcode.com/problems/find-right-interval)
- [ ] 437 😎 [Path Sum III](https://leetcode.com/problems/path-sum-iii)
- [ ] 438 😎 [Find All Anagrams in a String](https://leetcode.com/problems/find-all-anagrams-in-a-string)
- [ ] 439 😐 [Ternary Expression Parser](https://leetcode.com/problems/ternary-expression-parser) ㊙️
- [ ] 440 😨 [K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order)
- [ ] 441 😎 [Arranging Coins](https://leetcode.com/problems/arranging-coins)
- [ ] 442 😐 [Find All Duplicates in an Array](https://leetcode.com/problems/find-all-duplicates-in-an-array)
- [ ] 443 😎 [String Compression](https://leetcode.com/problems/string-compression)
- [ ] 444 😐 [Sequence Reconstruction](https://leetcode.com/problems/sequence-reconstruction) ㊙️
- [ ] 445 😐 [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii)
- [ ] 446 😨 [Arithmetic Slices II - Subsequence](https://leetcode.com/problems/arithmetic-slices-ii-subsequence)
- [ ] 447 😎 [Number of Boomerangs](https://leetcode.com/problems/number-of-boomerangs)
- [ ] 448 😎 [Find All Numbers Disappeared in an Array](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array)
- [ ] 449 😐 [Serialize and Deserialize BST](https://leetcode.com/problems/serialize-and-deserialize-bst)
- [ ] 450 😐 [Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst)
- [ ] 451 😐 [Sort Characters By Frequency](https://leetcode.com/problems/sort-characters-by-frequency)
- [ ] 452 😐 [Minimum Number of Arrows to Burst Balloons](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons)
- [ ] 453 😎 [Minimum Moves to Equal Array Elements](https://leetcode.com/problems/minimum-moves-to-equal-array-elements)
- [ ] 454 😐 [4Sum II](https://leetcode.com/problems/4sum-ii)
- [ ] 455 😎 [Assign Cookies](https://leetcode.com/problems/assign-cookies)
- [ ] 456 😐 [132 Pattern](https://leetcode.com/problems/132-pattern)
- [ ] 457 😐 [Circular Array Loop](https://leetcode.com/problems/circular-array-loop)
- [ ] 458 😎 [Poor Pigs](https://leetcode.com/problems/poor-pigs)
- [ ] 459 😎 [Repeated Substring Pattern](https://leetcode.com/problems/repeated-substring-pattern)
- [ ] 460 😨 [LFU Cache](https://leetcode.com/problems/lfu-cache)
- [x] 461 😎 [Hamming Distance](https://leetcode.com/problems/hamming-distance) [.swift](./Tests/461.swift)
- [ ] 462 😐 [Minimum Moves to Equal Array Elements II](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii)
- [ ] 463 😎 [Island Perimeter](https://leetcode.com/problems/island-perimeter)
- [ ] 464 😐 [Can I Win](https://leetcode.com/problems/can-i-win)
- [ ] 465 😨 [Optimal Account Balancing](https://leetcode.com/problems/optimal-account-balancing) ㊙️
- [ ] 466 😨 [Count The Repetitions](https://leetcode.com/problems/count-the-repetitions)
- [ ] 467 😐 [Unique Substrings in Wraparound String](https://leetcode.com/problems/unique-substrings-in-wraparound-string)
- [ ] 468 😐 [Validate IP Address](https://leetcode.com/problems/validate-ip-address)
- [ ] 469 😐 [Convex Polygon](https://leetcode.com/problems/convex-polygon) ㊙️
- [ ] 471 😨 [Encode String with Shortest Length](https://leetcode.com/problems/encode-string-with-shortest-length) ㊙️
- [ ] 472 😨 [Concatenated Words](https://leetcode.com/problems/concatenated-words)
- [ ] 473 😐 [Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square)
- [ ] 474 😐 [Ones and Zeroes](https://leetcode.com/problems/ones-and-zeroes)
- [ ] 475 😎 [Heaters](https://leetcode.com/problems/heaters)
- [x] 476 😎 [Number Complement](https://leetcode.com/problems/number-complement) [.swift](./Tests/476.swift)
- [ ] 477 😐 [Total Hamming Distance](https://leetcode.com/problems/total-hamming-distance)
- [ ] 479 😎 [Largest Palindrome Product](https://leetcode.com/problems/largest-palindrome-product)
- [ ] 480 😨 [Sliding Window Median](https://leetcode.com/problems/sliding-window-median)
- [ ] 481 😐 [Magical String](https://leetcode.com/problems/magical-string)
- [ ] 482 😎 [License Key Formatting](https://leetcode.com/problems/license-key-formatting)
- [ ] 483 😨 [Smallest Good Base](https://leetcode.com/problems/smallest-good-base)
- [ ] 484 😐 [Find Permutation](https://leetcode.com/problems/find-permutation) ㊙️
- [ ] 485 😎 [Max Consecutive Ones](https://leetcode.com/problems/max-consecutive-ones)
- [ ] 486 😐 [Predict the Winner](https://leetcode.com/problems/predict-the-winner)
- [ ] 487 😐 [Max Consecutive Ones II](https://leetcode.com/problems/max-consecutive-ones-ii) ㊙️
- [ ] 488 😨 [Zuma Game](https://leetcode.com/problems/zuma-game)
- [ ] 490 😐 [The Maze](https://leetcode.com/problems/the-maze) ㊙️
- [ ] 491 😐 [Increasing Subsequences](https://leetcode.com/problems/increasing-subsequences)
- [ ] 492 😎 [Construct the Rectangle](https://leetcode.com/problems/construct-the-rectangle)
- [ ] 493 😨 [Reverse Pairs](https://leetcode.com/problems/reverse-pairs)
- [ ] 494 😐 [Target Sum](https://leetcode.com/problems/target-sum)
- [ ] 495 😐 [Teemo Attacking](https://leetcode.com/problems/teemo-attacking)
- [ ] 496 😎 [Next Greater Element I](https://leetcode.com/problems/next-greater-element-i)
- [ ] 498 😐 [Diagonal Traverse](https://leetcode.com/problems/diagonal-traverse)
- [ ] 499 😨 [The Maze III](https://leetcode.com/problems/the-maze-iii) ㊙️
- [ ] 500 😎 [Keyboard Row](https://leetcode.com/problems/keyboard-row)
- [ ] 501 😎 [Find Mode in Binary Search Tree](https://leetcode.com/problems/find-mode-in-binary-search-tree)
- [ ] 502 😨 [IPO](https://leetcode.com/problems/ipo)
- [ ] 503 😐 [Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii)
- [x] 504 😎 [Base 7](https://leetcode.com/problems/base-7) [.swift](./Tests/504.swift)
- [ ] 505 😐 [The Maze II](https://leetcode.com/problems/the-maze-ii) ㊙️
- [ ] 506 😎 [Relative Ranks](https://leetcode.com/problems/relative-ranks)
- [ ] 507 😎 [Perfect Number](https://leetcode.com/problems/perfect-number)
- [ ] 508 😐 [Most Frequent Subtree Sum](https://leetcode.com/problems/most-frequent-subtree-sum)
- [ ] 513 😐 [Find Bottom Left Tree Value](https://leetcode.com/problems/find-bottom-left-tree-value)
- [ ] 514 😨 [Freedom Trail](https://leetcode.com/problems/freedom-trail)
- [ ] 515 😐 [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row)
- [ ] 516 😐 [Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence)
- [ ] 517 😨 [Super Washing Machines](https://leetcode.com/problems/super-washing-machines)
- [ ] 518 😐 [Coin Change 2](https://leetcode.com/problems/coin-change-2)
- [x] 520 😎 [Detect Capital](https://leetcode.com/problems/detect-capital) [.swift](./Tests/520.swift)
- [ ] 521 😎 [Longest Uncommon Subsequence I ](https://leetcode.com/problems/longest-uncommon-subsequence-i)
- [ ] 522 😐 [Longest Uncommon Subsequence II](https://leetcode.com/problems/longest-uncommon-subsequence-ii)
- [ ] 523 😐 [Continuous Subarray Sum](https://leetcode.com/problems/continuous-subarray-sum)
- [ ] 524 😐 [Longest Word in Dictionary through Deleting](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting)
- [ ] 525 😐 [Contiguous Array](https://leetcode.com/problems/contiguous-array)
- [ ] 526 😐 [Beautiful Arrangement](https://leetcode.com/problems/beautiful-arrangement)
- [ ] 527 😨 [Word Abbreviation](https://leetcode.com/problems/word-abbreviation) ㊙️
- [ ] 529 😐 [Minesweeper](https://leetcode.com/problems/minesweeper)
- [ ] 530 😎 [Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum-absolute-difference-in-bst)
- [ ] 531 😐 [Lonely Pixel I](https://leetcode.com/problems/lonely-pixel-i) ㊙️
- [ ] 532 😎 [K-diff Pairs in an Array](https://leetcode.com/problems/k-diff-pairs-in-an-array)
- [ ] 533 😐 [Lonely Pixel II](https://leetcode.com/problems/lonely-pixel-ii) ㊙️
- [ ] 535 😐 [Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl)
- [ ] 536 😐 [Construct Binary Tree from String](https://leetcode.com/problems/construct-binary-tree-from-string) ㊙️
- [ ] 537 😐 [Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication)
- [ ] 538 😎 [Convert BST to Greater Tree](https://leetcode.com/problems/convert-bst-to-greater-tree)
- [ ] 539 😐 [Minimum Time Difference](https://leetcode.com/problems/minimum-time-difference)
- [ ] 540 😐 [Single Element in a Sorted Array](https://leetcode.com/problems/single-element-in-a-sorted-array)
- [ ] 541 😎 [Reverse String II](https://leetcode.com/problems/reverse-string-ii)
- [ ] 542 😐 [01 Matrix](https://leetcode.com/problems/01-matrix)
- [ ] 543 😎 [Diameter of Binary Tree](https://leetcode.com/problems/diameter-of-binary-tree)
- [ ] 544 😐 [Output Contest Matches](https://leetcode.com/problems/output-contest-matches) ㊙️
- [ ] 545 😐 [Boundary of Binary Tree](https://leetcode.com/problems/boundary-of-binary-tree) ㊙️
- [ ] 546 😨 [Remove Boxes](https://leetcode.com/problems/remove-boxes)
- [ ] 547 😐 [Friend Circles](https://leetcode.com/problems/friend-circles)
- [ ] 548 😐 [Split Array with Equal Sum](https://leetcode.com/problems/split-array-with-equal-sum) ㊙️
- [ ] 549 😐 [Binary Tree Longest Consecutive Sequence II](https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii) ㊙️
- [ ] 551 😎 [Student Attendance Record I](https://leetcode.com/problems/student-attendance-record-i)
- [ ] 552 😨 [Student Attendance Record II](https://leetcode.com/problems/student-attendance-record-ii)
- [ ] 553 😐 [Optimal Division](https://leetcode.com/problems/optimal-division)
- [ ] 554 😐 [Brick Wall](https://leetcode.com/problems/brick-wall)
- [ ] 555 😐 [Split Concatenated Strings](https://leetcode.com/problems/split-concatenated-strings) ㊙️
- [ ] 556 😐 [Next Greater Element III](https://leetcode.com/problems/next-greater-element-iii)
- [ ] 557 😎 [Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii)
- [ ] 560 😐 [Subarray Sum Equals K](https://leetcode.com/problems/subarray-sum-equals-k)
- [ ] 561 😎 [Array Partition I](https://leetcode.com/problems/array-partition-i)
- [ ] 562 😐 [Longest Line of Consecutive One in Matrix](https://leetcode.com/problems/longest-line-of-consecutive-one-in-matrix) ㊙️
- [ ] 563 😎 [Binary Tree Tilt](https://leetcode.com/problems/binary-tree-tilt)
- [ ] 564 😨 [Find the Closest Palindrome](https://leetcode.com/problems/find-the-closest-palindrome)
- [ ] 565 😐 [Array Nesting](https://leetcode.com/problems/array-nesting)
- [ ] 566 😎 [Reshape the Matrix](https://leetcode.com/problems/reshape-the-matrix)
- [ ] 567 😐 [Permutation in String](https://leetcode.com/problems/permutation-in-string)
- [ ] 568 😨 [Maximum Vacation Days](https://leetcode.com/problems/maximum-vacation-days) ㊙️
- [ ] 572 😎 [Subtree of Another Tree](https://leetcode.com/problems/subtree-of-another-tree)
- [ ] 573 😐 [Squirrel Simulation](https://leetcode.com/problems/squirrel-simulation) ㊙️
- [ ] 575 😎 [Distribute Candies](https://leetcode.com/problems/distribute-candies)
- [ ] 576 😐 [Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths)
- [ ] 581 😎 [Shortest Unsorted Continuous Subarray](https://leetcode.com/problems/shortest-unsorted-continuous-subarray)
- [ ] 582 😐 [Kill Process](https://leetcode.com/problems/kill-process) ㊙️
- [ ] 583 😐 [Delete Operation for Two Strings](https://leetcode.com/problems/delete-operation-for-two-strings)
- [ ] 587 😨 [Erect the Fence](https://leetcode.com/problems/erect-the-fence)
- [ ] 588 😨 [Design In-Memory File System](https://leetcode.com/problems/design-in-memory-file-system) ㊙️
- [ ] 591 😨 [Tag Validator](https://leetcode.com/problems/tag-validator)
- [ ] 592 😐 [Fraction Addition and Subtraction](https://leetcode.com/problems/fraction-addition-and-subtraction)
- [ ] 593 😐 [Valid Square](https://leetcode.com/problems/valid-square)
- [ ] 594 😎 [Longest Harmonious Subsequence](https://leetcode.com/problems/longest-harmonious-subsequence)
- [ ] 598 😎 [Range Addition II](https://leetcode.com/problems/range-addition-ii)
- [ ] 599 😎 [Minimum Index Sum of Two Lists](https://leetcode.com/problems/minimum-index-sum-of-two-lists)
- [ ] 600 😨 [Non-negative Integers without Consecutive Ones](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones)
- [ ] 604 😎 [Design Compressed String Iterator](https://leetcode.com/problems/design-compressed-string-iterator) ㊙️
- [ ] 605 😎 [Can Place Flowers](https://leetcode.com/problems/can-place-flowers)
- [ ] 606 😎 [Construct String from Binary Tree](https://leetcode.com/problems/construct-string-from-binary-tree)
- [ ] 609 😐 [Find Duplicate File in System](https://leetcode.com/problems/find-duplicate-file-in-system)
- [ ] 611 😐 [Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number)
- [ ] 616 😐 [Add Bold Tag in String](https://leetcode.com/problems/add-bold-tag-in-string) ㊙️
- [ ] 617 😎 [Merge Two Binary Trees](https://leetcode.com/problems/merge-two-binary-trees)
- [ ] 621 😐 [Task Scheduler](https://leetcode.com/problems/task-scheduler)
- [ ] 623 😐 [Add One Row to Tree](https://leetcode.com/problems/add-one-row-to-tree)
- [ ] 624 😎 [Maximum Distance in Arrays](https://leetcode.com/problems/maximum-distance-in-arrays) ㊙️
- [ ] 625 😐 [Minimum Factorization](https://leetcode.com/problems/minimum-factorization) ㊙️
- [ ] 628 😎 [Maximum Product of Three Numbers](https://leetcode.com/problems/maximum-product-of-three-numbers)
- [ ] 629 😨 [K Inverse Pairs Array](https://leetcode.com/problems/k-inverse-pairs-array)
- [ ] 630 😨 [Course Schedule III](https://leetcode.com/problems/course-schedule-iii)
- [ ] 631 😨 [Design Excel Sum Formula](https://leetcode.com/problems/design-excel-sum-formula) ㊙️
- [ ] 632 😨 [Smallest Range](https://leetcode.com/problems/smallest-range)
- [ ] 633 😎 [Sum of Square Numbers](https://leetcode.com/problems/sum-of-square-numbers)
- [ ] 634 😐 [Find the Derangement of An Array](https://leetcode.com/problems/find-the-derangement-of-an-array) ㊙️
- [ ] 635 😐 [Design Log Storage System](https://leetcode.com/problems/design-log-storage-system) ㊙️
- [ ] 636 😐 [Exclusive Time of Functions](https://leetcode.com/problems/exclusive-time-of-functions)
- [ ] 637 😎 [Average of Levels in Binary Tree](https://leetcode.com/problems/average-of-levels-in-binary-tree)
- [ ] 638 😐 [Shopping Offers](https://leetcode.com/problems/shopping-offers)
- [ ] 639 😨 [Decode Ways II](https://leetcode.com/problems/decode-ways-ii)
- [ ] 640 😐 [Solve the Equation](https://leetcode.com/problems/solve-the-equation)
- [ ] 642 😨 [Design Search Autocomplete System](https://leetcode.com/problems/design-search-autocomplete-system) ㊙️
- [ ] 643 😎 [Maximum Average Subarray I](https://leetcode.com/problems/maximum-average-subarray-i)
- [ ] 644 😨 [Maximum Average Subarray II](https://leetcode.com/problems/maximum-average-subarray-ii) ㊙️
- [ ] 645 😎 [Set Mismatch](https://leetcode.com/problems/set-mismatch)
- [ ] 646 😐 [Maximum Length of Pair Chain](https://leetcode.com/problems/maximum-length-of-pair-chain)
- [ ] 647 😐 [Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings)
- [ ] 648 😐 [Replace Words](https://leetcode.com/problems/replace-words)
- [ ] 649 😐 [Dota2 Senate](https://leetcode.com/problems/dota2-senate)
- [ ] 650 😐 [2 Keys Keyboard](https://leetcode.com/problems/2-keys-keyboard)
- [ ] 651 😐 [4 Keys Keyboard](https://leetcode.com/problems/4-keys-keyboard) ㊙️
- [ ] 652 😐 [Find Duplicate Subtrees](https://leetcode.com/problems/find-duplicate-subtrees)
- [ ] 653 😎 [Two Sum IV - Input is a BST](https://leetcode.com/problems/two-sum-iv-input-is-a-bst)
- [ ] 654 😐 [Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree)
- [ ] 655 😐 [Print Binary Tree](https://leetcode.com/problems/print-binary-tree)
- [ ] 656 😨 [Coin Path](https://leetcode.com/problems/coin-path) ㊙️
- [ ] 657 😎 [Judge Route Circle](https://leetcode.com/problems/judge-route-circle)
- [ ] 658 😐 [Find K Closest Elements](https://leetcode.com/problems/find-k-closest-elements)
- [ ] 659 😐 [Split Array into Consecutive Subsequences](https://leetcode.com/problems/split-array-into-consecutive-subsequences)
- [ ] 660 😨 [Remove 9](https://leetcode.com/problems/remove-9) ㊙️
- [ ] 661 😎 [Image Smoother](https://leetcode.com/problems/image-smoother)
- [ ] 662 😐 [Maximum Width of Binary Tree](https://leetcode.com/problems/maximum-width-of-binary-tree)
- [ ] 663 😐 [Equal Tree Partition](https://leetcode.com/problems/equal-tree-partition) ㊙️
- [ ] 664 😨 [Strange Printer](https://leetcode.com/problems/strange-printer)
- [ ] 665 😎 [Non-decreasing Array](https://leetcode.com/problems/non-decreasing-array)
- [ ] 666 😐 [Path Sum IV](https://leetcode.com/problems/path-sum-iv) ㊙️
- [ ] 667 😐 [Beautiful Arrangement II](https://leetcode.com/problems/beautiful-arrangement-ii)
- [ ] 668 😨 [Kth Smallest Number in Multiplication Table](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table)
- [ ] 669 😎 [Trim a Binary Search Tree](https://leetcode.com/problems/trim-a-binary-search-tree)
- [ ] 670 😐 [Maximum Swap](https://leetcode.com/problems/maximum-swap)
- [ ] 671 😎 [Second Minimum Node In a Binary Tree](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree)
- [ ] 672 😐 [Bulb Switcher II](https://leetcode.com/problems/bulb-switcher-ii)
- [ ] 673 😐 [Number of Longest Increasing Subsequence](https://leetcode.com/problems/number-of-longest-increasing-subsequence)
- [ ] 674 😎 [Longest Continuous Increasing Subsequence](https://leetcode.com/problems/longest-continuous-increasing-subsequence)
- [ ] 675 😨 [Cut Off Trees for Golf Event](https://leetcode.com/problems/cut-off-trees-for-golf-event)
- [ ] 676 😐 [Implement Magic Dictionary](https://leetcode.com/problems/implement-magic-dictionary)
- [ ] 677 😐 [Map Sum Pairs](https://leetcode.com/problems/map-sum-pairs)
- [ ] 678 😐 [Valid Parenthesis String](https://leetcode.com/problems/valid-parenthesis-string)
- [ ] 679 😨 [24 Game](https://leetcode.com/problems/24-game)
- [ ] 680 😎 [Valid Palindrome II](https://leetcode.com/problems/valid-palindrome-ii)
- [ ] 681 😐 [Next Closest Time](https://leetcode.com/problems/next-closest-time) ㊙️
- [ ] 682 😎 [Baseball Game](https://leetcode.com/problems/baseball-game)
- [ ] 683 😨 [K Empty Slots](https://leetcode.com/problems/k-empty-slots) ㊙️
- [ ] 684 😐 [Redundant Connection](https://leetcode.com/problems/redundant-connection)
- [ ] 685 😨 [Redundant Connection II](https://leetcode.com/problems/redundant-connection-ii)
- [ ] 686 😎 [Repeated String Match](https://leetcode.com/problems/repeated-string-match)
- [ ] 687 😎 [Longest Univalue Path](https://leetcode.com/problems/longest-univalue-path)
- [ ] 688 😐 [Knight Probability in Chessboard](https://leetcode.com/problems/knight-probability-in-chessboard)
- [ ] 689 😨 [Maximum Sum of 3 Non-Overlapping Subarrays](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays)
- [ ] 690 😎 [Employee Importance](https://leetcode.com/problems/employee-importance)
- [ ] 691 😨 [Stickers to Spell Word](https://leetcode.com/problems/stickers-to-spell-word)
- [ ] 692 😐 [Top K Frequent Words](https://leetcode.com/problems/top-k-frequent-words)
- [ ] 693 😎 [Binary Number with Alternating Bits](https://leetcode.com/problems/binary-number-with-alternating-bits)
- [ ] 694 😐 [Number of Distinct Islands](https://leetcode.com/problems/number-of-distinct-islands) ㊙️
- [ ] 695 😎 [Max Area of Island](https://leetcode.com/problems/max-area-of-island)
- [ ] 696 😎 [Count Binary Substrings](https://leetcode.com/problems/count-binary-substrings)
- [ ] 697 😎 [Degree of an Array](https://leetcode.com/problems/degree-of-an-array)
- [ ] 698 😐 [Partition to K Equal Sum Subsets](https://leetcode.com/problems/partition-to-k-equal-sum-subsets)
- [ ] 699 😨 [Falling Squares](https://leetcode.com/problems/falling-squares)
- [ ] 711 😨 [Number of Distinct Islands II](https://leetcode.com/problems/number-of-distinct-islands-ii) ㊙️
- [ ] 712 😐 [Minimum ASCII Delete Sum for Two Strings](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings)
- [ ] 713 😐 [Subarray Product Less Than K](https://leetcode.com/problems/subarray-product-less-than-k)
- [ ] 714 😐 [Best Time to Buy and Sell Stock with Transaction Fee](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee)
- [ ] 715 😨 [Range Module](https://leetcode.com/problems/range-module)
- [ ] 716 😨 [Max Stack](https://leetcode.com/problems/max-stack) ㊙️
- [ ] 717 😎 [1-bit and 2-bit Characters](https://leetcode.com/problems/1-bit-and-2-bit-characters)
- [ ] 718 😐 [Maximum Length of Repeated Subarray](https://leetcode.com/problems/maximum-length-of-repeated-subarray)
- [ ] 719 😨 [Find K-th Smallest Pair Distance](https://leetcode.com/problems/find-k-th-smallest-pair-distance)
- [ ] 720 😎 [Longest Word in Dictionary](https://leetcode.com/problems/longest-word-in-dictionary)
- [ ] 721 😐 [Accounts Merge](https://leetcode.com/problems/accounts-merge)
- [ ] 722 😐 [Remove Comments](https://leetcode.com/problems/remove-comments)
- [ ] 723 😐 [Candy Crush](https://leetcode.com/problems/candy-crush) ㊙️
- [ ] 724 😎 [Find Pivot Index](https://leetcode.com/problems/find-pivot-index)
- [ ] 725 😐 [Split Linked List in Parts](https://leetcode.com/problems/split-linked-list-in-parts)
- [ ] 726 😨 [Number of Atoms](https://leetcode.com/problems/number-of-atoms)
- [ ] 727 😨 [Minimum Window Subsequence](https://leetcode.com/problems/minimum-window-subsequence) ㊙️
- [ ] 728 😎 [Self Dividing Numbers](https://leetcode.com/problems/self-dividing-numbers)
- [ ] 729 😐 [My Calendar I](https://leetcode.com/problems/my-calendar-i)
- [ ] 730 😨 [Count Different Palindromic Subsequences](https://leetcode.com/problems/count-different-palindromic-subsequences)
- [ ] 731 😐 [My Calendar II](https://leetcode.com/problems/my-calendar-ii)
- [ ] 732 😨 [My Calendar III](https://leetcode.com/problems/my-calendar-iii)
- [ ] 733 😎 [Flood Fill](https://leetcode.com/problems/flood-fill)
- [ ] 734 😎 [Sentence Similarity](https://leetcode.com/problems/sentence-similarity) ㊙️
- [ ] 735 😐 [Asteroid Collision](https://leetcode.com/problems/asteroid-collision)
- [ ] 736 😨 [Parse Lisp Expression](https://leetcode.com/problems/parse-lisp-expression)
- [ ] 737 😐 [Sentence Similarity II](https://leetcode.com/problems/sentence-similarity-ii) ㊙️
- [ ] 738 😐 [Monotone Increasing Digits](https://leetcode.com/problems/monotone-increasing-digits)
- [ ] 739 😐 [Daily Temperatures](https://leetcode.com/problems/daily-temperatures)
- [ ] 740 😐 [Delete and Earn](https://leetcode.com/problems/delete-and-earn)
- [ ] 741 😨 [Cherry Pickup](https://leetcode.com/problems/cherry-pickup)
- [ ] 709 😎 [To Lower Case](https://leetcode.com/problems/to-lower-case)
- [ ] 742 😐 [Closest Leaf in a Binary Tree](https://leetcode.com/problems/closest-leaf-in-a-binary-tree) ㊙️
- [ ] 743 😐 [Network Delay Time](https://leetcode.com/problems/network-delay-time)
- [ ] 744 😎 [Find Smallest Letter Greater Than Target](https://leetcode.com/problems/find-smallest-letter-greater-than-target)
- [ ] 745 😨 [Prefix and Suffix Search](https://leetcode.com/problems/prefix-and-suffix-search)
- [ ] 746 😎 [Min Cost Climbing Stairs](https://leetcode.com/problems/min-cost-climbing-stairs)
- [ ] 747 😎 [Largest Number At Least Twice of Others](https://leetcode.com/problems/largest-number-at-least-twice-of-others)
- [ ] 748 😐 [Shortest Completing Word](https://leetcode.com/problems/shortest-completing-word)
- [ ] 749 😨 [Contain Virus](https://leetcode.com/problems/contain-virus)
- [ ] 750 😐 [Number Of Corner Rectangles](https://leetcode.com/problems/number-of-corner-rectangles) ㊙️
- [ ] 751 😎 [IP to CIDR](https://leetcode.com/problems/ip-to-cidr) ㊙️
- [ ] 752 😐 [Open the Lock](https://leetcode.com/problems/open-the-lock)
- [ ] 753 😨 [Cracking the Safe](https://leetcode.com/problems/cracking-the-safe)
- [ ] 754 😐 [Reach a Number](https://leetcode.com/problems/reach-a-number)
- [ ] 755 😐 [Pour Water](https://leetcode.com/problems/pour-water) ㊙️
- [ ] 756 😐 [Pyramid Transition Matrix](https://leetcode.com/problems/pyramid-transition-matrix)
- [ ] 426 😐 [Convert Binary Search Tree to Sorted Doubly Linked List](https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list) ㊙️
- [ ] 757 😨 [Set Intersection Size At Least Two](https://leetcode.com/problems/set-intersection-size-at-least-two)
- [ ] 758 😎 [Bold Words in String](https://leetcode.com/problems/bold-words-in-string) ㊙️
- [ ] 759 😨 [Employee Free Time](https://leetcode.com/problems/employee-free-time) ㊙️
- [ ] 760 😎 [Find Anagram Mappings](https://leetcode.com/problems/find-anagram-mappings) ㊙️
- [ ] 761 😨 [Special Binary String](https://leetcode.com/problems/special-binary-string)
- [ ] 429 😎 [N-ary Tree Level Order Traversal](https://leetcode.com/problems/n-ary-tree-level-order-traversal)
- [ ] 428 😨 [Serialize and Deserialize N-ary Tree](https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree) ㊙️
- [ ] 430 😐 [Flatten a Multilevel Doubly Linked List](https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list)
- [ ] 762 😎 [Prime Number of Set Bits in Binary Representation](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation)
- [ ] 763 😐 [Partition Labels](https://leetcode.com/problems/partition-labels)
- [ ] 764 😐 [Largest Plus Sign](https://leetcode.com/problems/largest-plus-sign)
- [ ] 765 😨 [Couples Holding Hands](https://leetcode.com/problems/couples-holding-hands)
- [ ] 431 😨 [Encode N-ary Tree to Binary Tree](https://leetcode.com/problems/encode-n-ary-tree-to-binary-tree) ㊙️
- [ ] 427 😎 [Construct Quad Tree](https://leetcode.com/problems/construct-quad-tree)
- [ ] 558 😎 [Quad Tree Intersection](https://leetcode.com/problems/quad-tree-intersection)
- [ ] 559 😎 [Maximum Depth of N-ary Tree](https://leetcode.com/problems/maximum-depth-of-n-ary-tree)
- [ ] 589 😎 [N-ary Tree Preorder Traversal](https://leetcode.com/problems/n-ary-tree-preorder-traversal)
- [ ] 590 😎 [N-ary Tree Postorder Traversal](https://leetcode.com/problems/n-ary-tree-postorder-traversal)
- [ ] 766 😎 [Toeplitz Matrix](https://leetcode.com/problems/toeplitz-matrix)
- [ ] 767 😐 [Reorganize String](https://leetcode.com/problems/reorganize-string)
- [ ] 768 😨 [Max Chunks To Make Sorted II](https://leetcode.com/problems/max-chunks-to-make-sorted-ii)
- [ ] 769 😐 [Max Chunks To Make Sorted](https://leetcode.com/problems/max-chunks-to-make-sorted)
- [ ] 770 😨 [Basic Calculator IV](https://leetcode.com/problems/basic-calculator-iv)
- [ ] 771 😎 [Jewels and Stones](https://leetcode.com/problems/jewels-and-stones)
- [ ] 700 😎 [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree)
- [ ] 701 😐 [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree)
- [ ] 772 😨 [Basic Calculator III](https://leetcode.com/problems/basic-calculator-iii) ㊙️
- [ ] 702 😐 [Search in a Sorted Array of Unknown Size](https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size) ㊙️
- [ ] 773 😨 [Sliding Puzzle](https://leetcode.com/problems/sliding-puzzle)
- [ ] 774 😨 [Minimize Max Distance to Gas Station](https://leetcode.com/problems/minimize-max-distance-to-gas-station) ㊙️
- [ ] 703 😎 [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream)
- [ ] 775 😐 [Global and Local Inversions](https://leetcode.com/problems/global-and-local-inversions)
- [ ] 776 😐 [Split BST](https://leetcode.com/problems/split-bst) ㊙️
- [ ] 704 😎 [Binary Search](https://leetcode.com/problems/binary-search)
- [ ] 777 😐 [Swap Adjacent in LR String](https://leetcode.com/problems/swap-adjacent-in-lr-string)
- [ ] 778 😨 [Swim in Rising Water](https://leetcode.com/problems/swim-in-rising-water)
- [ ] 779 😐 [K-th Symbol in Grammar](https://leetcode.com/problems/k-th-symbol-in-grammar)
- [ ] 780 😨 [Reaching Points](https://leetcode.com/problems/reaching-points)
- [ ] 781 😐 [Rabbits in Forest](https://leetcode.com/problems/rabbits-in-forest)
- [ ] 782 😨 [Transform to Chessboard](https://leetcode.com/problems/transform-to-chessboard)
- [ ] 783 😎 [Minimum Distance Between BST Nodes](https://leetcode.com/problems/minimum-distance-between-bst-nodes)
- [ ] 784 😎 [Letter Case Permutation](https://leetcode.com/problems/letter-case-permutation)
- [ ] 785 😐 [Is Graph Bipartite?](https://leetcode.com/problems/is-graph-bipartite)
- [ ] 786 😨 [K-th Smallest Prime Fraction](https://leetcode.com/problems/k-th-smallest-prime-fraction)
- [ ] 787 😐 [Cheapest Flights Within K Stops](https://leetcode.com/problems/cheapest-flights-within-k-stops)
- [x] 788 😎 [Rotated Digits](https://leetcode.com/problems/rotated-digits) [.swift](./Tests/788.swift)
- [ ] 789 😐 [Escape The Ghosts](https://leetcode.com/problems/escape-the-ghosts)
- [ ] 790 😐 [Domino and Tromino Tiling](https://leetcode.com/problems/domino-and-tromino-tiling)
- [ ] 791 😐 [Custom Sort String](https://leetcode.com/problems/custom-sort-string)
- [ ] 792 😐 [Number of Matching Subsequences](https://leetcode.com/problems/number-of-matching-subsequences)
- [ ] 793 😨 [Preimage Size of Factorial Zeroes Function](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function)
- [ ] 794 😐 [Valid Tic-Tac-Toe State](https://leetcode.com/problems/valid-tic-tac-toe-state)
- [ ] 795 😐 [Number of Subarrays with Bounded Maximum](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum)
- [x] 796 😎 [Rotate String](https://leetcode.com/problems/rotate-string) [.swift](./Tests/796.swift)
- [ ] 797 😐 [All Paths From Source to Target](https://leetcode.com/problems/all-paths-from-source-to-target)
- [ ] 798 😨 [Smallest Rotation with Highest Score](https://leetcode.com/problems/smallest-rotation-with-highest-score)
- [ ] 799 😐 [Champagne Tower](https://leetcode.com/problems/champagne-tower)
- [ ] 705 😎 [Design HashSet](https://leetcode.com/problems/design-hashset)
- [ ] 706 😎 [Design HashMap](https://leetcode.com/problems/design-hashmap)
- [ ] 800 😎 [Similar RGB Color](https://leetcode.com/problems/similar-rgb-color) ㊙️
- [ ] 801 😐 [Minimum Swaps To Make Sequences Increasing](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing)
- [ ] 802 😐 [Find Eventual Safe States](https://leetcode.com/problems/find-eventual-safe-states)
- [ ] 803 😨 [Bricks Falling When Hit](https://leetcode.com/problems/bricks-falling-when-hit)
- [x] 804 😎 [Unique Morse Code Words](https://leetcode.com/problems/unique-morse-code-words) [.swift](./Tests/804.swift)
- [ ] 805 😨 [Split Array With Same Average](https://leetcode.com/problems/split-array-with-same-average)
- [x] 806 😎 [Number of Lines To Write String](https://leetcode.com/problems/number-of-lines-to-write-string) [.swift](./Tests/806.swift)
- [ ] 807 😐 [Max Increase to Keep City Skyline](https://leetcode.com/problems/max-increase-to-keep-city-skyline)
- [ ] 808 😐 [Soup Servings](https://leetcode.com/problems/soup-servings)
- [ ] 809 😐 [Expressive Words](https://leetcode.com/problems/expressive-words)
- [ ] 810 😨 [Chalkboard XOR Game](https://leetcode.com/problems/chalkboard-xor-game)
- [x] 811 😎 [Subdomain Visit Count](https://leetcode.com/problems/subdomain-visit-count) [.swift](./Tests/811.swift)
- [ ] 812 😎 [Largest Triangle Area](https://leetcode.com/problems/largest-triangle-area)
- [ ] 813 😐 [Largest Sum of Averages](https://leetcode.com/problems/largest-sum-of-averages)
- [ ] 814 😐 [Binary Tree Pruning](https://leetcode.com/problems/binary-tree-pruning)
- [ ] 815 😨 [Bus Routes](https://leetcode.com/problems/bus-routes)
- [ ] 816 😐 [Ambiguous Coordinates](https://leetcode.com/problems/ambiguous-coordinates)
- [ ] 817 😐 [Linked List Components](https://leetcode.com/problems/linked-list-components)
- [ ] 818 😨 [Race Car](https://leetcode.com/problems/race-car)
- [x] 819 😎 [Most Common Word](https://leetcode.com/problems/most-common-word) [.swift](./Tests/819.swift)
- [ ] 707 😎 [Design Linked List](https://leetcode.com/problems/design-linked-list)
- [ ] 820 😐 [Short Encoding of Words](https://leetcode.com/problems/short-encoding-of-words)
- [ ] 821 😎 [Shortest Distance to a Character](https://leetcode.com/problems/shortest-distance-to-a-character)
- [ ] 822 😐 [Card Flipping Game](https://leetcode.com/problems/card-flipping-game)
- [ ] 823 😐 [Binary Trees With Factors](https://leetcode.com/problems/binary-trees-with-factors)
- [ ] 708 😐 [Insert into a Cyclic Sorted List](https://leetcode.com/problems/insert-into-a-cyclic-sorted-list) ㊙️
- [x] 824 😎 [Goat Latin](https://leetcode.com/problems/goat-latin) [.swift](./Tests/824.swift)
- [ ] 825 😐 [Friends Of Appropriate Ages](https://leetcode.com/problems/friends-of-appropriate-ages)
- [ ] 826 😐 [Most Profit Assigning Work](https://leetcode.com/problems/most-profit-assigning-work)
- [ ] 827 😨 [Making A Large Island](https://leetcode.com/problems/making-a-large-island)
- [ ] 828 😨 [Unique Letter String](https://leetcode.com/problems/unique-letter-string)
- [ ] 829 😐 [Consecutive Numbers Sum](https://leetcode.com/problems/consecutive-numbers-sum)
- [x] 830 😎 [Positions of Large Groups](https://leetcode.com/problems/positions-of-large-groups) [.swift](./Tests/830.swift)
- [ ] 831 😐 [Masking Personal Information](https://leetcode.com/problems/masking-personal-information)
- [ ] 641 😐 [Design Circular Deque](https://leetcode.com/problems/design-circular-deque)
- [ ] 622 😐 [Design Circular Queue](https://leetcode.com/problems/design-circular-queue)
- [x] 832 😎 [Flipping an Image](https://leetcode.com/problems/flipping-an-image) [.swift](./Tests/832.swift)
- [ ] 833 😐 [Find And Replace in String](https://leetcode.com/problems/find-and-replace-in-string)
- [ ] 834 😨 [Sum of Distances in Tree](https://leetcode.com/problems/sum-of-distances-in-tree)
- [ ] 835 😐 [Image Overlap](https://leetcode.com/problems/image-overlap)
- [ ] 489 😨 [Robot Room Cleaner](https://leetcode.com/problems/robot-room-cleaner) ㊙️
- [x] 836 😎 [Rectangle Overlap](https://leetcode.com/problems/rectangle-overlap) [.swift](./Tests/836.swift)
- [ ] 837 😐 [New 21 Game](https://leetcode.com/problems/new-21-game)
- [ ] 838 😐 [Push Dominoes](https://leetcode.com/problems/push-dominoes)
- [ ] 839 😨 [Similar String Groups](https://leetcode.com/problems/similar-string-groups)
- [x] 840 😎 [Magic Squares In Grid](https://leetcode.com/problems/magic-squares-in-grid) [.swift](./Tests/840.swift)
- [ ] 841 😐 [Keys and Rooms](https://leetcode.com/problems/keys-and-rooms)
- [ ] 842 😐 [Split Array into Fibonacci Sequence](https://leetcode.com/problems/split-array-into-fibonacci-sequence)
- [ ] 843 😨 [Guess the Word](https://leetcode.com/problems/guess-the-word)
- [x] 844 😎 [Backspace String Compare](https://leetcode.com/problems/backspace-string-compare) [.swift](./Tests/844.swift)
- [ ] 845 😐 [Longest Mountain in Array](https://leetcode.com/problems/longest-mountain-in-array)
- [ ] 846 😐 [Hand of Straights](https://leetcode.com/problems/hand-of-straights)
- [ ] 847 😨 [Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes)
- [ ] 848 😐 [Shifting Letters](https://leetcode.com/problems/shifting-letters)
- [ ] 849 😎 [Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person)
- [ ] 850 😨 [Rectangle Area II](https://leetcode.com/problems/rectangle-area-ii)
- [ ] 851 😐 [Loud and Rich](https://leetcode.com/problems/loud-and-rich)
- [x] 852 😎 [Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array) [.swift](./Tests/852.swift)
- [ ] 853 😐 [Car Fleet](https://leetcode.com/problems/car-fleet)
- [ ] 854 😨 [K-Similar Strings](https://leetcode.com/problems/k-similar-strings)
- [ ] 855 😐 [Exam Room](https://leetcode.com/problems/exam-room)
- [ ] 856 😐 [Score of Parentheses](https://leetcode.com/problems/score-of-parentheses)
- [ ] 857 😨 [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers)
- [ ] 858 😐 [Mirror Reflection](https://leetcode.com/problems/mirror-reflection)
- [x] 859 😎 [Buddy Strings](https://leetcode.com/problems/buddy-strings) [.swift](./Tests/859.swift)
- [x] 860 😎 [Lemonade Change](https://leetcode.com/problems/lemonade-change) [.swift](./Tests/860.swift)
- [ ] 861 😐 [Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix)
- [ ] 862 😨 [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k)
- [ ] 863 😐 [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree)
- [ ] 710 😨 [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist)
- [ ] 864 😨 [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys)
- [ ] 865 😐 [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes)
- [ ] 866 😐 [Prime Palindrome](https://leetcode.com/problems/prime-palindrome)
- [ ] 867 😎 [Transpose Matrix](https://leetcode.com/problems/transpose-matrix)
- [x] 868 😎 [Binary Gap](https://leetcode.com/problems/binary-gap) [.swift](./Tests/868.swift)
- [ ] 869 😐 [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2)
- [ ] 870 😐 [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle)
- [ ] 871 😨 [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops)
- [ ] 470 😐 [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7)

## Unit tests
This is a test-driven project. You may press + u in Xcode to invoke the tests. Or just `rake` in CLI.

## License

Copyright (C) 2018 lexrus.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.