housemeow / Leetcode

4 stars 2 forks source link

大家一起Leetcode

使用步驟

  1. 下面挑一題
  2. AC後在指定資料夾建個屬於你名字的檔名.副檔名 (Example: Kellly.cpp, Dennaolan.sql)
  3. 把檔案網址貼在readme

色塊標示題目難易度

題目清單

Easy 1_Two Sum

3k4733294.c, Dennaolan.cpp, Kellly.c, Kellly.cpp, tkd9714.php, oliver.py - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/3k4733294.c) 128 ms (**76.77%**), 7.5 MB (**82.55%**) - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/Dennaolan.cpp) 148 ms (**24.97%**), 9.3 MB (**81.64%**) - [Kellly.c](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/Kellly.c) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/Kellly.cpp) - [Kellly.js](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/Kellly.js) 84 ms (**58.56%**), 41.4 MB (**9.03%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/tkd9714.php) 156 ms (**57.51%**), 15.9 MB (**43.77%**) - [oliver.py](https://github.com/housemeow/Leetcode/blob/master/1_Two%20Sum/oliver.py)

Medium 2_Add Two Numbers

Dennaolan.cpp, Kellly.cpp, tkd9714.php - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/2_Add%20Two%20Numbers/Dennaolan.cpp) 16 ms (**99.28%**), 10.9 MB (**40.89%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/2_Add%20Two%20Numbers/Kellly.cpp) 24 ms (**87.83%**), 9.8 MB (**97.72%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/2_Add%20Two%20Numbers/tkd9714.php) 16 ms (**97.34%**), 14.8 MB (**58.16%**)

Medium 3_Longest Substring Without Repeating Characters

Dennaolan.cpp, Dennaolan(list).cpp, Kellly.cpp, tkd9714.php - [Dennaolan.cpp ](https://github.com/housemeow/Leetcode/blob/master/3_Longest%20Substring%20Without%20Repeating%20Characters/Dennaolan.cpp) **Time Limit Exceeded** - [Dennaolan(list).cpp ](https://github.com/housemeow/Leetcode/blob/master/3_Longest%20Substring%20Without%20Repeating%20Characters/Dennaolan(list).cpp) 452 ms (**11.00%**), 214.1 MB (**7.87%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/3_Longest%20Substring%20Without%20Repeating%20Characters/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/3_Longest%20Substring%20Without%20Repeating%20Characters/tkd9714.php) 20 ms (**90.96%**), 15 MB (**44.41%**)

Hard 4_Median of Two Sorted Arrays

Kellly.cpp, tkd9714.php - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/4_Median%20of%20Two%20Sorted%20Arrays/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/4_Median%20of%20Two%20Sorted%20Arrays/tkd9714.php) 36 ms (**90.63%**), 15 MB (**62.18%**)

Medium 5_Longest Palindromic Substring

Dennaolan.cpp, Kellly.cpp, Kellly(middle).cpp, tkd9714.php3, k4733294.c - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/5_Longest%20Palindromic%20Substring/Dennaolan.cpp) 24 ms (**68.40%**), 52.1 MB (**22.89%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/5_Longest%20Palindromic%20Substring/Kellly.cpp) - [Kellly(middle).cpp](https://github.com/housemeow/Leetcode/blob/master/5_Longest%20Palindromic%20Substring/Kellly(middle).cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/5_Longest%20Palindromic%20Substring/tkd9714.php) 28 ms (**98.09%**), 14.9 MB (**64.03%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/5_Longest%20Palindromic%20Substring/3k4733294.c) 220 ms (**17.41%**), 7.1 MB (**62.68%**) - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/5_Longest%20Palindromic%20Substring/vegeman.js) 92 ms (**94.88%**), 42.1 MB (**75.82%**)

Medium 6_ZigZag Conversion

Dennaolan.cpp, Kellly.cpp, tkd9714.php, tkd9714(double loop).php, vegeman.js - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/6_ZigZag%20Conversion/Dennaolan.cpp) 52 ms (**14.53%**), 10.3 MB (**70.68%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/6_ZigZag%20Conversion/Kellly.cpp) - [tkd9714(double loop).php](https://github.com/housemeow/Leetcode/blob/master/6_ZigZag%20Conversion/tkd9714(double%20loop).php) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/6_ZigZag%20Conversion/tkd9714.php) 12 ms (**98.59%**), 14.8 MB (**94.74%**) - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/6_ZigZag%20Conversion/vegeman.js) 88 ms (**74.18%**), 38.2 MB (**88.89%**)

Easy 7_Reverse Integer

3k4733294.c, Dennaolan.cpp, Kellly.cpp, tkd9714.php, oliver.py, vegeman.js - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/7_Reverse%20Integer/3k4733294.c) 4 ms (**93.32%**), 6.9 MB (**64.19%**) - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/7_Reverse%20Integer/Dennaolan.cpp) 4 ms (**86.77%**), 8.4 MB (**37.73%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/7_Reverse%20Integer/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/7_Reverse%20Integer/tkd9714.php) 4 ms (**97.65%**), 14.8 MB (**53.68%**) - [oliver.py](https://github.com/housemeow/Leetcode/blob/master/7_Reverse%20Integer/oliver.py) - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/7_Reverse%20Integer/vegeman.js)

Medium 8_String to Integer (atoi)

Dennaolan.cpp, tkd9714.php, Kellly.cpp, vegeman.js - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/8_String%20to%20Integer%20(atoi)/Dennaolan.cpp) 4 ms (**92.54%**), 9 MB (**19.75%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/8_String%20to%20Integer%20(atoi)/tkd9714.php) 8 ms (**88.36%**), 14.8 MB (**80.00%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/8_String%20to%20Integer%20(atoi)/Kellly.cpp) 0 ms (**100.00%**), 8.6 MB (**14.37%**) - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/8_String%20to%20Integer%20(atoi)/vegeman.js) 68 ms (**94.04%**), 36.3 MB (**42.86%**)

Easy 9_Palindrome Number

3k4733294.c, Dennaolan.cpp, Kellly(list).cpp, Kellly(math).cpp, Kellly.(stack&queue).cpp, tkd9714.php, oliver.py - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/3k4733294.c) 0 ms (**100%**), 7.2 MB (**78.1%**) - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/Dennaolan.cpp) 20 ms (**71.83%**), 8.1 MB (**72.45%**) - [Kellly(list).cpp](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/Kellly(list).cpp) - [Kellly(math).cpp](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/Kellly(math).cpp) - [Kellly.(stack&queue).cpp](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/Kellly.(stack%26queue).cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/tkd9714.php) 20 ms (**96.82%**), 14.8 MB (**63.36%**) - [oliver.py](https://github.com/housemeow/Leetcode/blob/master/9_Palindrome%20Number/oliver.py)

Hard 10_Regular Expression Matching

Kellly.cpp, Kellly(DynamicProgramming).cpp, tkd9714.php - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/10_Regular%20Expression%20Matching/Kellly.cpp) 220 ms (**14.82%**), 15.2 MB (**21.11%**) - [Kellly(DynamicProgramming).cpp](https://github.com/housemeow/Leetcode/blob/master/10_Regular%20Expression%20Matching/Kellly(DynamicProgramming).cpp) 4 ms (**95.40%**), 8.3 MB (**90.51%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/10_Regular%20Expression%20Matching/tkd9714.php) 580 ms (**11.11%**), 14.8 MB (**100%**)

Medium 11_Container With Most Water

Dennaolan.cpp, Kellly(ignoreLowerHeight).cpp, Kellly.cpp, tkd9714.php - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/11_Container%20With%20Most%20Water/Dennaolan.cpp) 1252 ms (**10.04%**), 9.7 MB (**81.47%**) - [Kellly(ignoreLowerHeight).cpp](https://github.com/housemeow/Leetcode/blob/master/11_Container%20With%20Most%20Water/Kellly(ignoreLowerHeight).cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/11_Container%20With%20Most%20Water/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/11_Container%20With%20Most%20Water/tkd9714.php) 32 ms (**97.14%**), 16.4 MB (**51.22%**)

Medium 12_Integer to Roman

Dennaolan.cpp, tkd9714.php, tkd9714(faster).php, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/12_Integer%20to%20Roman/Dennaolan.cpp) 8 ms (**87.94%**), 8.3 MB (**87.25%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/12_Integer%20to%20Roman/tkd9714.php) 28 ms (**71.60%**), 14.9 MB (**57.14%**) - [tkd9714(faster).php](https://github.com/housemeow/Leetcode/blob/master/12_Integer%20to%20Roman/tkd9714(faster).php) 12 ms (**95.06%**), 14.7 MB (**58.00%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/12_Integer%20to%20Roman/Kellly.cpp) 4 ms (**96.11%**), 8.6 MB (**44.82%**)

Easy 13_Roman to Integer

3k4733294.c, Dennaolan.cpp, Kellly.cpp, tkd9714.php - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/13_Roman%20to%20Integer/3k4733294.c) 8 ms (**87.25%**), 7.2 MB (**55.72%**) - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/13_Roman%20to%20Integer/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/13_Roman%20to%20Integer/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/13_Roman%20to%20Integer/tkd9714.php) 16 ms (**91.45%**), 15 MB (**17.07%**)

Easy 14_Longest Common Prefix

Dennaolan.cpp, Kellly.cpp, tkd9714.php, oliver.py, 3k4733294.c - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/14_Longest%20Common%20Prefix/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/14_Longest%20Common%20Prefix/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/14_Longest%20Common%20Prefix/tkd9714.php) 0 ms (**100%**), 14.8 MB (**87.59%**) - [oliver.py](https://github.com/housemeow/Leetcode/blob/master/14_Longest%20Common%20Prefix/oliver.py) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/14_Longest%20Common%20Prefix/3k4733294.c) 0 ms (**100%**), 7.3 MB (**45.72%**)

Medium 15_3Sum

Dennaolan.cpp, Dennnaolan.py, tkd9714.php, Kellly.cpp, vegeman.js - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/15_3Sum/Dennaolan.cpp) **Time Limit Exceeded** - [Dennaolan.py](https://github.com/housemeow/Leetcode/blob/master/15_3Sum/Dennaolan.py) 2987 ms (**26.02%**), 18.2 MB (**39.53%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/15_3Sum/tkd9714.php) 168 ms (**98.50%**), 24.1 MB (**58.97%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/15_3Sum/Kellly.cpp) 196 ms (**15.20%**), 18.3 MB (**15.88%**) - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/15_3Sum/vegeman.js) 212 ms (**40.24%**), 49.3 MB (**66.28%**)

Medium 16 3Sum Closest

tkd9714.php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/16_3Sum%20Closest/tkd9714.php) 24 ms (**97.14%**), 14.8 MB (**57.14%**)

Medium 17 Letter Combinations of a Phone Number

Dennaolan.py, tkd9714.php, tkd9714(simplify).php - [Dennaolan.py](https://github.com/housemeow/Leetcode/blob/master/17_Letter%20Combinations%20of%20a%20Phone%20Number/Dennaolan.py) 45 ms (**59.55%**), 13.9 MB (**79.63%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/17_Letter%20Combinations%20of%20a%20Phone%20Number/tkd9714.php) 4 ms (**98.29%**), 15.3 MB (**13.51%**) - [tkd9714(simplify).php](https://github.com/housemeow/Leetcode/blob/master/17_Letter%20Combinations%20of%20a%20Phone%20Number/tkd9714(simplify).php) 4 ms (**98.28%**), 15.1 MB (**16.22%**)

Medium 19 Remove Nth Node From End of List

tkd9714.php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/19_Remove%20Nth%20Node%20From%20End%20of%20List/tkd9714.php) 4 ms (**97.92%**), 14.7 MB(**82.76%**)

Easy 20_Valid Parentheses

Dennaolan.cpp, tkd9714.php, 3k4733294.c, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/20_Valid%20Parentheses/Dennaolan.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/20_Valid%20Parentheses/tkd9714.php) 8 ms (**92.02%**), 14.9 MB (**70.70%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/20_Valid%20Parentheses/3k4733294.c) 0 ms (**100.00%**), 7.1 MB (**39.97%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/20_Valid%20Parentheses/Kellly.cpp) 0 ms (**100.00%**), 8.6 MB (**15.93%**)

Easy 21_Merge Two Sorted Lists

Dennaolan.cpp, oliver.py, tkd9714.php, 3k4733294.c, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/21_Merge%20Two%20Sorted%20Lists/Dennaolan.cpp) - [oliver.py](https://github.com/housemeow/Leetcode/blob/master/21_Merge%20Two%20Sorted%20Lists/oliver.py) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/21_Merge%20Two%20Sorted%20Lists/tkd9714.php) 4 ms (**95.49%**), 14.9 MB (**37.35%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/20_Valid%20Parentheses/3k4733294.c) 4 ms (**91.02%**), 7.5 MB (**32.33%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/20_Valid%20Parentheses/Kellly.cpp) 4 ms (**99.25%**), 9.1 MB (**9.74%**)

Medium 22 Generate Parentheses

tkd9714.php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/22_Generate%20Parentheses/tkd9714.php) 4 ms(**97.62%**), 15.4 MB (**90.32%**)

Hard 23 Merge k Sorted Lists

tkd9714.php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/23_Merge%20k%20Sorted%20Lists/tkd9714.php) 24 ms (**100%**), 22.6 MB (**41.67%**)

Medium 24 Swap Nodes in Pairs

tkd9714.php, vegeman.js - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/24_Swap%20Nodes%20in%20Pairs/tkd9714.php) 4 ms (**97.92%**), 14.8 MB (**66.67%**) - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/24_Swap%20Nodes%20in%20Pairs/vegeman.js) 52 ms (**80.58%**), 33.9 MB (**15.79%**)

Hard 25 Reverse Nodes in k-Group

tkd9714.php, tkd9714(splstack).php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/25_Reverse%20Nodes%20in%20k-Group/tkd9714.php) 88 ms (**9.09%**), 15.9 MB (**100%**) - [tkd9714(splstack).php](https://github.com/housemeow/Leetcode/blob/master/25_Reverse%20Nodes%20in%20k-Group/tkd9714(splstack).php) 12 ms (**90.91%**), 15.9 MB (**100%**)

Easy 26_Remove Duplicates from Sorted Array

Dennaolan.cpp, tkd9714.php, 3k4733294.c, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/26_Remove%20Duplicates%20from%20Sorted%20Array/Dennaolan.cpp) 156 ms (**17.91%**), 9.8 MB (**89.09%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/26_Remove%20Duplicates%20from%20Sorted%20Array/tkd9714.php) 20 ms (**96.59%**), 17.6 MB (**12.04%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/26_Remove%20Duplicates%20from%20Sorted%20Array/3k4733294.c) 16 ms (**95.57%**), 9.7 MB (**12.86%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/26_Remove%20Duplicates%20from%20Sorted%20Array/Kellly.cpp) 20 ms (**94.56%**), 10 MB (**25.42%**)

Easy 27_Remove Element

Dennaolan.cpp, tkd9714.php, 3k4733294.c, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/27_Remove%20Element/Dennaolan.cpp) 4 ms (**82.76%**), 8.7 MB (**10.07%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/27_Remove%20Element/tkd9714.php) 8 ms (**85.62%**), 14.7 MB (**89.01%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/27_Remove%20Element/3k4733294.c) 4 ms (**83.33%**), 7.3 MB (**7.66%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/27_Remove%20Element/Kellly.cpp) 0 ms (**100.00%**), 8.7 MB (**17.81%**)

Easy 28_Implement strStr()

Dennaolan.cpp, tkd9714.php, 3k4733294.c, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/28_Implement%20strStr()/Dennaolan.cpp) 4 ms (**94.49%**), 9.3 MB (**12.12%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/28_Implement%20strStr()/tkd9714.php) 8 ms (**88.33%**), 14.9 MB (**74.65%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/28_Implement%20strStr()/3k4733294.c) 4 ms (**87.79%**), 7.1 MB (**47.74%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/28_Implement%20strStr()/Kellly.cpp) 4 ms (**93.58%**), 8.9 MB (**89.40%**)

Medium 29_Divide Two Integers

tkd9714.php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/29_Divide%20Two%20Integers/tkd9714.php) 0 ms (**100%**), 14.6 MB (**100%**)

Medium 31_Next Permutation

Kellly.cpp, tkd9714.php - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/31_Next%20Permutation/Kellly.cpp) 8 ms (**85.12%**), 6 MB (**68.58%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/31_Next%20Permutation/tkd9714.php) 4 ms (**96.30%**), 14.9 MB (**66.67%**)

Hard 32_Longest Valid Parentheses

tkd9714.php, Kellly.cpp - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/32_Longest%20Valid%20Parentheses/tkd9714.php) 8 ms (**87.50%**), 14.8 MB (**100%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/32_Longest%20Valid%20Parentheses/Kellly.cpp) 92 ms (**7.31%**), 19.4 MB (**5.05%**)

Medium 33_Search in Rotated Sorted Array

tkd9714.php, Kellly.cpp - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/33_Search%20in%20Rotated%20Sorted%20Array/tkd9714.php) 4 ms (**100%**), 15 MB (**100%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/33_Search%20in%20Rotated%20Sorted%20Array/Kellly.cpp) 4 ms (**86.81%**), 8.7 MB (**50.62%**)

Medium 34_Find First and Last Position of Element in Sorted Array

tkd9714.php - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/34_Find%20First%20and%20Last%20Position%20of%20Element%20in%20Sorted%20Array/tkd9714.php) 12 ms (**100%**), 19.1 MB (**62.5%**)

Easy 35_Search Insert Position

Dennaolan.cpp, tkd9714.php, 3k4733294.c, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/35_Search%20Insert%20Position/Dennaolan.cpp) 4 ms (**99.17%**), 8.8 MB (**67.20%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/35_Search%20Insert%20Position/tkd9714.php) 12 ms (**90.20%**), 16 MB (**18.52%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/35_Search%20Insert%20Position/3k4733294.c) 4 ms (**92.24%**), 7.3 MB (**7.16%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/35_Search%20Insert%20Position/Kellly.cpp) 8 ms (**73.48%**), 8.9 MB (**53.11%**)

Easy 38_Count and Say

Dennaolan.cpp, tkd9714.php, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/38_Count%20and%20Say/Dennaolan.cpp) 12 ms (**18.96%**), 8.7 MB (**67.59%**) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/38_Count%20and%20Say/tkd9714.php) 4 ms (**98.39%**), 14.8 MB (**65.00%**) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/38_Count%20and%20Say/Kellly.cpp) 4 ms (**86.01%**), 9 MB (**37.67%**)

Hard 44_Wildcard Matching

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/44_Wildcard%20Matching/Kellly.cpp) 32 ms (**70.37%**), 9.8 MB (**53.85%**)

Medium 50_Pow(x, n)

Dennaolan.py - [Dennaolan.py](https://github.com/housemeow/Leetcode/blob/master/50_Pow(x%2C%20n)/Dennaolan.py) 71 ms (**6.17%**), 13.9 MB (**68.53%**)

Easy 53_Maximum Subarray

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/53_Maximum%20Subarray/Kellly.cpp) 8 ms (**79.65%**), 9.3 MB (**42.17%**)

Easy 58_Length of Last Word

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/58_Length%20of%20Last%20Word/Kellly.cpp) 0 ms (**100.00%**), 8.7 MB (**49.62%**)

Easy 66_Plus One

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/66_%20Plus%20One/Kellly.cpp) 4 ms (**76.05%**), 8.7 MB (**12.15%**)

Easy 67_Add Binary

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/67_Add%20Binary/Kellly.cpp) 4 ms (**86.93%**), 9.3 MB (**19.93%**)

Easy 69_Sqrt(x)

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/69_Sqrt(x)/Kellly.cpp) 4 ms (**82.43%**), 8.3 MB (**14.73%**)

Easy 70_Climbing Stairs

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/70_Climbing%20Stairs/Kellly.cpp) 0 ms (**100.00%**), 8.2 MB (**61.56%**)

Easy 83_Remove Duplicates from Sorted List

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/83_Remove%20Duplicates%20from%20Sorted%20List/Kellly.cpp) 8 ms (**98.35%**), 9.3 MB (**41.98%**)

Easy 88_Merge Sorted Array

Kellly.cpp, vegeman.js - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/88_Merge%20Sorted%20Array/Kellly.cpp) 4 ms (**89.35%**), 8.6 MB (**79.35%**) - [vegeman.js] (https://github.com/housemeow/Leetcode/blob/master/88_Merge%20Sorted%20Array/vegeman.js) 60 ms (**42.98%**), 35.2 MB (**7.69%**)

Easy 100_Same Tree

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/100_Same%20Tree/Kellly.cpp) 4 ms (**69.76%**), 9.6 MB (**81.84%**)

Easy 101_Symmetric Tree

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/101_Symmetric%20Tree/Kellly.cpp) 8 ms (**62.09%**), 15.6 MB (**5.09%**)

Easy 104_Maximum Depth of Binary Tree

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/104_Maximum%20Depth%20of%20Binary%20Tree/Kellly.cpp) 16 ms (**44.33%**), 19.4 MB (**54.23%**)

Easy 107_Binary Tree Level Order Traversal II

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/107_Binary%20Tree%20Level%20Order%20Traversal%20II/Kellly.cpp) 4 ms (**95.93%**), 14.9 MB (**20.00%**)

Easy 108_Convert Sorted Array to Binary Search Tree

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/108_Convert%20Sorted%20Array%20to%20Binary%20Search%20Tree/Kellly.cpp) 16 ms (**89.98%**), 21.1 MB (**59.09%**)

Easy 110_Balanced Binary Tree

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/110_Balanced%20Binary%20Tree/Kellly.cpp) 12 ms (**88.00%**), 17.4 MB (**45.99%**)

Easy 111_Minimum Depth of Binary Tree

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/111_Minimum%20Depth%20of%20Binary%20Tree/Kellly.cpp) 16 ms (**56.55%**), 20.1 MB (**22.22%**)

Easy 118_Pascal's Triangle

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/118_Pascal's%20Triangle/Kellly.cpp) 4 ms (**71.36%**), 8.8 MB (**38.29%**)

Easy 119_Pascal's Triangle II

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/119_Pascal's%20Triangle%20II/Kellly.cpp) 0 ms (**100.00%**), 8.2 MB (**99.21%**)

Easy 121_Best Time to Buy and Sell Stock

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/121_Best%20Time%20to%20Buy%20and%20Sell%20Stock/Kellly.cpp) 4 ms (**98.84%**), 9.6 MB (**17.51%**)

Easy 122_Best Time to Buy and Sell Stock II

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/122_Best%20Time%20to%20Buy%20and%20Sell%20Stock%20II/Kellly.cpp) 4 ms (**98.61%**), 9.5 MB (**55.01%**)

Easy 125_Valid Palindrome

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/125_Valid%20Palindrome/Kellly.cpp) 16 ms (**16.68%**), 9.2 MB (**90.37%**)

Easy 136_Single Number

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/136_Single%20Number/Kellly.cpp) 24 ms (**27.91%**), 9.6 MB (**87.10%**)

Easy 141_Linked List Cycle

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/141_Linked%20List%20Cycle/Kellly.cpp) 12 ms (**80.38%**), 9.8 MB (**38.68%**)

Easy 155_Min Stack

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/155_Min%20Stack/Kellly.cpp) 24 ms (**98.40%**), 17 MB (**21.14%**)

Easy 160_Intersection of Two Linked Lists

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/160_Intersection%20of%20Two%20Linked%20Lists/Kellly.cpp) 52 ms (**67.39%**), 16.7 MB (**58.15%**)

Easy 167_Two Sum II - Input array is sorted

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/167_Two%20Sum%20II%20-%20Input%20array%20is%20sorted/Kellly.cpp) 8 ms (**67.89%**), 9.5 MB (**52.26%**)

Easy 168_Excel Sheet Column Title

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/168_Excel%20Sheet%20Column%20Title/Kellly.cpp) 0 ms (**100.00%**), 8.1 MB (**70.87%**)

Easy 169_Majority Element

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/169_Majority%20Element/Kellly.cpp) 24 ms (**50.86%**), 11.1 MB (**37.97%**)

Easy 171_Excel Sheet Column Number

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/171_Excel%20Sheet%20Column%20Number/Kellly.cpp) 4 ms (**80.46%**), 8.1 MB (**77.45%**)

Easy 172_Factorial Trailing Zeroes

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/172_Factorial%20Trailing%20Zeroes/Kellly.cpp) 0 ms (**100.00%**), 8.2 MB (**49.44%**)

Easy 175_Combine Two Tables

Kellly.sql - [Kellly.sql](https://github.com/housemeow/Leetcode/blob/master/175_Combine%20Two%20Tables/Kellly.cpp) 193 ms (**99.80%**)

Easy 176_Second Highest Salary

Kellly.sql - [Kellly.sql](https://github.com/housemeow/Leetcode/blob/master/176_Second%20Highest%20Salary/Kellly.cpp) 136 ms (**70.53%**)

Easy 181_Employees Earning More Than Their Managers

Kellly.sql - [Kellly.sql](https://github.com/housemeow/Leetcode/blob/master/181_Employees%20Earning%20More%20Than%20Their%20Managers/Kellly.sql) 307 ms (**64.21%**)

Easy 182_Duplicate Emails

Kellly.sql - [Kellly.sql](https://github.com/housemeow/Leetcode/blob/master/182_Duplicate%20Emails/Kellly.cpp) 208 ms (**51.23%**)

Easy 183_Customers Who Never Order

Kellly.sql - [Kellly.sql](https://github.com/housemeow/Leetcode/blob/master/183_Customers%20Who%20Never%20Order/Kellly.sql) 225 ms (**99.13%**)

Easy 198_House Robber

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/198_House%20Robber/Kellly.cpp) 0 ms (**100.00%**), 8.6 MB (**90.57%**)

Easy 217 Contains Duplicate

Kellly.js - [Kellly.js](https://github.com/housemeow/Leetcode/blob/master/217.%20Contains%20Duplicate/Kellly.js) 80 ms (**93.43%**), 44.8 MB (**62.09%**)

Medium 241 Different Ways to Add Parentheses

Alan.java - [Alan.java](https://github.com/housemeow/Leetcode/blob/master/241_Different%20Ways%20to%20Add%20Parentheses/Alan.java) 1 ms (**99.59%**), 39.3 MB (**36.02%**)

Easy 226 Invert Binary Tree

Kellly.js - [Kellly.js](https://github.com/housemeow/Leetcode/blob/master/226_Invert%20Binary%20Tree/Kellly.js) 76 ms (**78.90%**), 40 MB (**9.98%**)

Medium 238_Product of Array Except Self

vegeman.js - [vegeman.js](https://github.com/housemeow/Leetcode/blob/master/238_Product%20of%20Array%20Except%20Self/vegeman.js) 104 ms (**96.09%**), 51.8 MB (**23.84%**)

Easy 278_First Bad Version

Dennaolan.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/278_First%20Bad%20Version/Dennaolan.cpp) 0 ms (**100%**), 8.2 MB (**31.03%**)

Easy 303_Range Sum Query - Immutable

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/303_Range%20Sum%20Query%20-%20Immutable/Kellly.cpp) 28 ms (**93.78%**), 17.1 MB (**96.55%**)

Easy 392_Is Subsequence

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/392_Is%20Subsequence/Kellly.cpp) 72 ms (**19.25%**), 16.9 MB (**95.24%**)

Easy 595_Big Countries

Dennaolan.sql, Kellly.sql, tkd9714.sql - [Dennaolan.sql](https://github.com/housemeow/Leetcode/blob/master/595_Big%20Countries/Dennaolan.sql) - [Kellly.sql](https://github.com/housemeow/Leetcode/blob/master/595_Big%20Countries/Kellly.sql) - [tkd9714.sql](https://github.com/housemeow/Leetcode/blob/master/595_Big%20Countries/tkd9714.sql) 128 ms (**93.28%**)

Easy 709_To Lower Case

3k4733294.c, Dennaolan.cpp, Kellly.cpp, tkd9714.php - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/709_To%20Lower%20Case/3k4733294.c) 0 ms (**100%**), 6.9 MB (**5.06%**) - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/709_To%20Lower%20Case/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/709_To%20Lower%20Case/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/709_To%20Lower%20Case/tkd9714.php)

Easy 746_Min Cost Climbing Stairs

Kellly.cpp - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/746_Min%20Cost%20Climbing%20Stairs/Kellly.cpp) 4 ms (**98.26%**), 8.8 MB (**81.40%**)

Easy 771_Jewels and Stones

3k4733294.cpp, Dennaolan.cpp, Kellly.cpp, tkd9714.php - [3k4733294.cpp](https://github.com/housemeow/Leetcode/blob/master/771_Jewels%20and%20Stones/3k4733294.cpp) 24 ms (**87.83%**), 8.5 MB (**66.26%**) - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/771_Jewels%20and%20Stones/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/771_Jewels%20and%20Stones/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/771_Jewels%20and%20Stones/tkd9714.php)

Easy 804_Unique Morse Code Words

Dennaolan.cpp, Kellly.cpp, tkd9714.php, 3k4733294.c - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/804_Unique%20Morse%20Code%20Words/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/804_Unique%20Morse%20Code%20Words/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/804_Unique%20Morse%20Code%20Words/tkd9714.php) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/804_Unique%20Morse%20Code%20Words/3k4733294.c) 4 ms (**90.5%**), 7 MB (**40%**)

Easy 832_Flipping an Image

Dennaolan.cpp, Kellly.cpp, tkd9714.php, 3k4733294.c - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/832_Flipping%20an%20Image/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/832_Flipping%20an%20Image/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/832_Flipping%20an%20Image/tkd9714.php) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/832_Flipping%20an%20Image/3k4733294.c) 8 ms (**100%**), 8.3 MB (**5.17%**)

Easy 905_Sort Array By Parity

Dennaolan.cpp, Kellly.cpp, tkd9714.php, 3k4733294.c - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/905_Sort%20Array%20By%20Parity/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/905_Sort%20Array%20By%20Parity/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/905_Sort%20Array%20By%20Parity/tkd9714.php) 16 ms (**100%**), 16.2 MB (**36.11%**) - [3k4733294.c](https://github.com/housemeow/Leetcode/blob/master/905_Sort%20Array%20By%20Parity/3k4733294.c) 24 ms (**95.34%**), 10.2 MB (**52.60%**)

Easy 929_Unique Email Addresses

Dennaolan.cpp, Kellly.cpp, tkd9714.php - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/929_Unique%20Email%20Addresses/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/929_Unique%20Email%20Addresses/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/929_Unique%20Email%20Addresses/tkd9714.php)

Easy 938_Range Sum of BST

Dennaolan.cpp, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/938_Range%20Sum%20of%20BST/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/938_Range%20Sum%20of%20BST/Kellly.cpp) 144 ms (**87.15%**), 41 MB (**90.15%**)

Easy 961_N-Repeated Element in Size 2N Array

Dennaolan.cpp, Kellly.cpp, tkd9714.php - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/961_N-Repeated%20Element%20in%20Size%202N%20Array/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/961_N-Repeated%20Element%20in%20Size%202N%20Array/Kellly.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/961_N-Repeated%20Element%20in%20Size%202N%20Array/tkd9714.php)

Easy 977_Squares of a Sorted Array

Dennaolan.cpp, tkd9714.php, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/977_Squares%20of%20a%20Sorted%20Array/Dennaolan.cpp) - [tkd9714.php](https://github.com/housemeow/Leetcode/blob/master/977_Squares%20of%20a%20Sorted%20Array/tkd9714.php) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/977_Squares%20of%20a%20Sorted%20Array/Kellly.cpp) 100 ms (**88.18%**), 13.3 MB (**81.76%**)

Easy 1021_Remove Outermost Parentheses

Dennaolan.cpp, Kellly.cpp - [Dennaolan.cpp](https://github.com/housemeow/Leetcode/blob/master/1021_Remove%20Outermost%20Parentheses/Dennaolan.cpp) - [Kellly.cpp](https://github.com/housemeow/Leetcode/blob/master/1021_Remove%20Outermost%20Parentheses/Kellly.cpp) 4 ms (**94.83%**), 9.3 MB (**15.07%**)