# LeetCode **Repository Path**: arcsinw/LeetCode ## Basic Information - **Project Name**: LeetCode - **Description**: LeetCode C++ solutions - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## LeetCode |#|Title|Difficulty|Code|Blog| | :---: | :---: | :---: | :---: | :---: | |1|[Two Sum](https://leetcode.com/problems/two-sum)|Easy|[1.cpp](src/1.cpp)|[[LeetCode] 1. Two Sum](https://www.cnblogs.com/arcsinw/p/9365603.html)| |2|[Add Two Numbers](https://leetcode.com/problems/add-two-numbers)|Medium|[2.cpp](src/2.cpp)|[[LeetCode] 2. Add Two Numbers](https://www.cnblogs.com/arcsinw/p/9504301.html)| |7|[Reverse Integer](https://leetcode.com/problems/reverse-integer)|Easy|[7.cpp](src/7.cpp)|[[LeetCode] 7. Reverse Integer](https://www.cnblogs.com/arcsinw/p/9510806.html)| |8|[String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi)|Medium|[8.cpp](src/8.cpp)|[]()| |20|[Valid Parentheses](https://leetcode.com/problems/valid-parentheses)|Easy|[20.cpp](src/20.cpp)|[[LeetCode] 20. Valid Parentheses](https://www.cnblogs.com/arcsinw/p/9455484.html)| |21|[Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists)|Easy|[21.cpp](src/21.cpp)|[[LeetCode] 21. Merge Two Sorted Lists](https://www.cnblogs.com/arcsinw/p/11264305.html)| |27|[Remove Element](https://leetcode.com/problems/remove-element)|Easy|[27.cpp](src/27.cpp)|[[LeetCode] 27. Remove Element](https://www.cnblogs.com/arcsinw/p/9533141.html)| |62|[Unique Paths](https://leetcode.com/problems/unique-paths)|Medium|[62.cpp](src/62.cpp)|[[LeetCode] 62. Unique Paths](https://www.cnblogs.com/arcsinw/p/12182663.html)| |64|[Minimum Path Sum](https://leetcode.com/problems/minimum-path-sum)|Medium|[64.cpp](src/64.cpp)|[[LeetCode] 64. Minimum Path Sum](https://www.cnblogs.com/arcsinw/p/12185284.html)| |66|[Plus One](https://leetcode.com/problems/plus-one)|Easy|[66.cpp](src/66.cpp)|[[LeetCode] 66. Plus One](https://www.cnblogs.com/arcsinw/p/9574480.html)| |104|[Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree)|Easy|[104.cpp](src/104.cpp)|[[LeetCode] 104. Maximum Depth of Binary Tree](https://www.cnblogs.com/arcsinw/p/11281362.html)| |136|[Single Number](https://leetcode.com/problems/single-number)|Easy|[136.cpp](src/136.cpp)|[[LeetCode] 136. Single Number](https://www.cnblogs.com/arcsinw/p/10403616.html)| |139|[Word Break](https://leetcode.com/problems/word-break)|Medium|[139.cpp](src/139.cpp)|[]()| |155|[Min Stack](https://leetcode.com/problems/min-stack)|Easy|[155.cpp](src/155.cpp)|[[LeetCode] 155. Min Stack](https://www.cnblogs.com/arcsinw/p/11276835.html)| |167|[Two Sum II - Input array is sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted)|Easy|[167.cpp](src/167.cpp)|[[LeetCode] 167. Two Sum II - Input array is sorted](https://www.cnblogs.com/arcsinw/p/9648750.html)| |169|[Majority Element](https://leetcode.com/problems/majority-element)|Easy|[169.cpp](src/169.cpp)|[[LeetCode] 169. Majority Element](https://www.cnblogs.com/arcsinw/p/11301760.html)| |175|[Combine Two Tables](https://leetcode.com/problems/combine-two-tables)|Easy|[175.cpp](src/175.cpp)|[]()| |176|[Second Highest Salary](https://leetcode.com/problems/second-highest-salary)|Easy|[176.cpp](src/176.cpp)|[]()| |181|[Employees Earning More Than Their Managers](https://leetcode.com/problems/employees-earning-more-than-their-managers)|Easy|[181.cpp](src/181.cpp)|[]()| |182|[Duplicate Emails](https://leetcode.com/problems/duplicate-emails)|Easy|[182.cpp](src/182.cpp)|[]()| |183|[Customers Who Never Order](https://leetcode.com/problems/customers-who-never-order)|Easy|[183.cpp](src/183.cpp)|[]()| |206|[Reverse Linked List](https://leetcode.com/problems/reverse-linked-list)|Easy|[206.cpp](src/206.cpp)|[]()| |237|[Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list)|Easy|[237.cpp](src/237.cpp)|[[LeetCode] 237. Delete Node in a Linked List](https://www.cnblogs.com/arcsinw/p/11934659.html)| |292|[Nim Game](https://leetcode.com/problems/nim-game)|Easy|[292.cpp](src/292.cpp)|[]()| |338|[Counting Bits](https://leetcode.com/problems/counting-bits)|Medium|[338.cpp](src/338.cpp)|[]()| |344|[Reverse String](https://leetcode.com/problems/reverse-string)|Easy|[344.cpp](src/344.cpp)|[]()| |383|[Ransom Note](https://leetcode.com/problems/ransom-note)|Easy|[383.cpp](src/383.cpp)|[[LeetCode] 383. Ransom Note](https://www.cnblogs.com/arcsinw/p/9473502.html)| |412|[Fizz Buzz](https://leetcode.com/problems/fizz-buzz)|Easy|[412.cpp](src/412.cpp)|[[LeetCode] 412. Fizz Buzz](https://www.cnblogs.com/arcsinw/p/9473896.html)| |461|[Hamming Distance](https://leetcode.com/problems/hamming-distance)|Easy|[461.cpp](src/461.cpp)|[[LeetCode] 461. Hamming Distance](https://www.cnblogs.com/arcsinw/p/9395440.html)| |470|[Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7)|Medium|[470.cpp](src/470.cpp)|[[LeetCode] 470. Implement Rand10() Using Rand7()](https://www.cnblogs.com/arcsinw/p/11447186.html)| |476|[Number Complement](https://leetcode.com/problems/number-complement)|Easy|[476.cpp](src/476.cpp)|[[LeetCode] 476. Number Complement](https://www.cnblogs.com/arcsinw/p/9473291.html)| |482|[License Key Formatting](https://leetcode.com/problems/license-key-formatting)|Easy|[482.cpp](src/482.cpp)|[[LeetCode] 482. License Key Formatting](https://www.cnblogs.com/arcsinw/p/11329127.html)| |500|[Keyboard Row](https://leetcode.com/problems/keyboard-row)|Easy|[500.cpp](src/500.cpp)|[[LeetCode] 500. Keyboard Row](https://www.cnblogs.com/arcsinw/p/9473187.html)| |509|[Fibonacci Number](https://leetcode.com/problems/fibonacci-number)|Easy|[509.cpp](src/509.cpp)|[[LeetCode] 509. Fibonacci Number](https://www.cnblogs.com/arcsinw/p/10284329.html)| |520|[Detect Capital](https://leetcode.com/problems/detect-capital)|Easy|[520.cpp](src/520.cpp)|[[LeetCode] 520. Detect Capital](https://www.cnblogs.com/arcsinw/p/9362054.html)| |537|[Complex Number Multiplication](https://leetcode.com/problems/complex-number-multiplication)|Medium|[537.cpp](src/537.cpp)|[[LeetCode] 537. Complex Number Multiplication](https://www.cnblogs.com/arcsinw/p/9342799.html)| |557|[Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii)|Easy|[557.cpp](src/557.cpp)|[]()| |561|[Array Partition I](https://leetcode.com/problems/array-partition-i)|Easy|[561.cpp](src/561.cpp)|[[LeetCode] 561. Array Partition I](https://www.cnblogs.com/arcsinw/p/10299337.html)| |566|[Reshape the Matrix](https://leetcode.com/problems/reshape-the-matrix)|Easy|[566.cpp](src/566.cpp)|[[LeetCode] 566. Reshape the Matrix](https://www.cnblogs.com/arcsinw/p/9498628.html)| |595|[Big Countries](https://leetcode.com/problems/big-countries)|Easy|[595.cpp](src/595.cpp)|[]()| |617|[Merge Two Binary Trees](https://leetcode.com/problems/merge-two-binary-trees)|Easy|[617.cpp](src/617.cpp)|[[LeetCode] 617. Merge Two Binary Trees](https://www.cnblogs.com/arcsinw/p/9409770.html)| |620|[Not Boring Movies](https://leetcode.com/problems/not-boring-movies)|Easy|[620.cpp](src/620.cpp)|[]()| |627|[Swap Salary](https://leetcode.com/problems/swap-salary)|Easy|[627.cpp](src/627.cpp)|[]()| |654|[Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree)|Medium|[654.cpp](src/654.cpp)|[]()| |657|[Robot Return to Origin](https://leetcode.com/problems/robot-return-to-origin)|Easy|[657.cpp](src/657.cpp)|[]()| |665|[Non-decreasing Array](https://leetcode.com/problems/non-decreasing-array)|Easy|[665.cpp](src/665.cpp)|[[LeetCode] 665. Non-decreasing Array](https://www.cnblogs.com/arcsinw/p/10661968.html)| |700|[Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree)|Easy|[700.cpp](src/700.cpp)|[]()| |701|[Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree)|Medium|[701.cpp](src/701.cpp)|[[LeetCode] 701. Insert into a Binary Search Tree](https://www.cnblogs.com/arcsinw/p/10289445.html)| |704|[Binary Search](https://leetcode.com/problems/binary-search)|Easy|[704.cpp](src/704.cpp)|[[LeetCode] 704. Binary Search](https://www.cnblogs.com/arcsinw/p/11388274.html)| |709|[To Lower Case](https://leetcode.com/problems/to-lower-case)|Easy|[709.cpp](src/709.cpp)|[[LeetCode] 709. To Lower Case](https://www.cnblogs.com/arcsinw/p/11303250.html)| |724|[Find Pivot Index](https://leetcode.com/problems/find-pivot-index)|Easy|[724.cpp](src/724.cpp)|[[LeetCode] 724. Find Pivot Index](https://www.cnblogs.com/arcsinw/p/11776765.html)| |728|[Self Dividing Numbers](https://leetcode.com/problems/self-dividing-numbers)|Easy|[728.cpp](src/728.cpp)|[[LeetCode] 728. Self Dividing Numbers](https://www.cnblogs.com/arcsinw/p/9419077.html)| |771|[Jewels and Stones](https://leetcode.com/problems/jewels-and-stones)|Easy|[771.cpp](src/771.cpp)|[]()| |791|[Custom Sort String](https://leetcode.com/problems/custom-sort-string)|Medium|[791.cpp](src/791.cpp)|[[LeetCode] 791. Custom Sort String](https://www.cnblogs.com/arcsinw/p/9347584.html)| |804|[Unique Morse Code Words](https://leetcode.com/problems/unique-morse-code-words)|Easy|[804.cpp](src/804.cpp)|[[LeetCode] 804. Unique Morse Code Words](https://www.cnblogs.com/arcsinw/p/9340603.html)| |806|[Number of Lines To Write String](https://leetcode.com/problems/number-of-lines-to-write-string)|Easy|[806.cpp](src/806.cpp)|[[LeetCode] 806. Number of Lines To Write String](https://www.cnblogs.com/arcsinw/p/9447556.html)| |807|[Max Increase to Keep City Skyline](https://leetcode.com/problems/max-increase-to-keep-city-skyline)|Medium|[807.cpp](src/807.cpp)|[[LeetCode] 807. Max Increase to Keep City Skyline](https://www.cnblogs.com/arcsinw/p/9337551.html)| |811|[Subdomain Visit Count](https://leetcode.com/problems/subdomain-visit-count)|Easy|[811.cpp](src/811.cpp)|[[LeetCode] 811. Subdomain Visit Count](https://www.cnblogs.com/arcsinw/p/9492680.html)| |822|[Card Flipping Game](https://leetcode.com/problems/card-flipping-game)|Medium|[822.cpp](src/822.cpp)|[[LeetCode] 822. Card Flipping Game](https://www.cnblogs.com/arcsinw/p/10317250.html)| |824|[Goat Latin](https://leetcode.com/problems/goat-latin)|Easy|[824.cpp](src/824.cpp)|[[LeetCode] 824. Goat Latin](https://www.cnblogs.com/arcsinw/p/11266909.html)| |832|[Flipping an Image](https://leetcode.com/problems/flipping-an-image)|Easy|[832.cpp](src/832.cpp)|[[LeetCode] 832. Flipping an Image](https://www.cnblogs.com/arcsinw/p/11938141.html)| |852|[Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array)|Easy|[852.cpp](src/852.cpp)|[[LeetCode] 852. Peak Index in a Mountain Array](https://www.cnblogs.com/arcsinw/p/9412208.html)| |856|[Score of Parentheses](https://leetcode.com/problems/score-of-parentheses)|Medium|[856.cpp](src/856.cpp)|[]()| |867|[Transpose Matrix](https://leetcode.com/problems/transpose-matrix)|Easy|[867.cpp](src/867.cpp)|[[LeetCode] 867. Transpose Matrix](https://www.cnblogs.com/arcsinw/p/9481262.html)| |868|[Binary Gap](https://leetcode.com/problems/binary-gap)|Easy|[868.cpp](src/868.cpp)|[[LeetCode] 868. Binary Gap](https://www.cnblogs.com/arcsinw/p/9449797.html)| |876|[Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list)|Easy|[876.cpp](src/876.cpp)|[[LeetCode] 876. Middle of the Linked List](https://www.cnblogs.com/arcsinw/p/9397682.html)| |897|[Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree)|Easy|[897.cpp](src/897.cpp)|[[LeetCode] 897. Increasing Order Search Tree](https://www.cnblogs.com/arcsinw/p/10409347.html)| |905|[Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity)|Easy|[905.cpp](src/905.cpp)|[[LeetCode] 905. Sort Array By Parity](https://www.cnblogs.com/arcsinw/p/9796327.html)| |921|[Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid)|Medium|[921.cpp](src/921.cpp)|[[LeetCode] 921. Minimum Add to Make Parentheses Valid](https://www.cnblogs.com/arcsinw/p/9788869.html)| |922|[Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii)|Easy|[922.cpp](src/922.cpp)|[[LeetCode] 922. Sort Array By Parity II](https://www.cnblogs.com/arcsinw/p/10311901.html)| |929|[Unique Email Addresses](https://leetcode.com/problems/unique-email-addresses)|Easy|[929.cpp](src/929.cpp)|[[LeetCode] 929. Unique Email Addresses](https://www.cnblogs.com/arcsinw/p/10138471.html)| |938|[Range Sum of BST](https://leetcode.com/problems/range-sum-of-bst)|Easy|[938.cpp](src/938.cpp)|[[LeetCode] 938. Range Sum of BST](https://www.cnblogs.com/arcsinw/p/10279652.html)| |961|[N-Repeated Element in Size 2N Array](https://leetcode.com/problems/n-repeated-element-in-size-2n-array)|Easy|[961.cpp](src/961.cpp)|[[LeetCode] 961. N-Repeated Element in Size 2N Array](https://www.cnblogs.com/arcsinw/p/10299378.html)| |965|[Univalued Binary Tree](https://leetcode.com/problems/univalued-binary-tree)|Easy|[965.cpp](src/965.cpp)|[[LeetCode] 965. Univalued Binary Tree](https://www.cnblogs.com/arcsinw/p/10306282.html)| |977|[Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array)|Easy|[977.cpp](src/977.cpp)|[[LeetCode] 977. Squares of a Sorted Array](https://www.cnblogs.com/arcsinw/p/10299356.html)| |1021|[Remove Outermost Parentheses](https://leetcode.com/problems/remove-outermost-parentheses)|Easy|[1021.cpp](src/1021.cpp)|[[LeetCode] 1021. Remove Outermost Parentheses](https://www.cnblogs.com/arcsinw/p/10738595.html)| |1025|[Divisor Game](https://leetcode.com/problems/divisor-game)|Easy|[1025.cpp](src/1025.cpp)|[[LeetCode] 1025. Divisor Game](https://www.cnblogs.com/arcsinw/p/12188998.html)| |1108|[Defanging an IP Address](https://leetcode.com/problems/defanging-an-ip-address)|Easy|[1108.cpp](src/1108.cpp)|[[LeetCode] 1108. Defanging an IP Address](https://www.cnblogs.com/arcsinw/p/11307895.html)| |1137|[N-th Tribonacci Number](https://leetcode.com/problems/n-th-tribonacci-number)|Easy|[1137.cpp](src/1137.cpp)|[[LeetCode] 1137. N-th Tribonacci Number](https://www.cnblogs.com/arcsinw/p/11425701.html)|