My solutions to LeetCode
- Author: MoRunChang, SYSU
Solution list
| Problem id | Problem name | Language | Rank(beats x% other submissions) |
|---|---|---|---|
| 263 | Ugly Number | C++ | 34.81% |
| 231 | Power of Two | C++ | 37.12% |
| 303 | Range Sum Query - Immutable | C++ | 69.82% |
| 461 | Hamming Distance | C++ | 35.58% |
| 476 | Number Complement | C++ | 33.73% |
| 500 | Keyboard Row | C++ | 2.65% |
| 412 | Fizz Buzz | C++ | 48.96% |
| 496 | Next Greater Element I | C++ | 69.76% |
| 344 | Reverse String | C++ | 33.12% |
| 463 | Island Perimeter | C++ | 80.12% |
| 485 | Max Consecutive Ones | C++ | 41.89% |
| 292 | Nim Game | C++ | 1.24% |
| 513 | Find Bottom Left Tree Value | C++ | 30.67% |
| 406 | Queue Reconstruction by Height | C++ | 53.54% |
| 413 | Arithmetic Slices | C++ | 16.67% |
| 520 | Detect Capital | C++ | 22.63% |
| 136 | Single Number | C++ | 92.12% |
| 448 | Find All Numbers Disappeared in an Array | C++ | 85.97% |
| 442 | Find All Duplicates in an Array | C++ | 67.65% |
| 515 | Find Largest Value in Each Tree Row | C++ | 62.43% |
| 495 | Teemo Attacking | C++ | 77.39% |
| 508 | Most Frequent Subtree Sum | C++ | 98.65% |
| 419 | Battleships in a Board | C++ | 29.03% |
| 338 | Counting Bits | C++ | 66.26% |
| 104 | Maximum Depth of Binary Tree | C++ | 38.45% |
| 371 | Sum of Two Integers | C++ | 37.35% |
| 389 | Find the Difference | C++ | 68.75% |
| 258 | Add Digits | C++ | 15.94% |
| 226 | Invert Binary Tree | C++ | 3.26% |
| 167 | Two Sum II - Input array is sorted | C++ | 10.92% |
| 530 | Minimum Absolute Difference in BST | C++ | 77.19% |
| 451 | Sort Characters By Frequency | C++ | 59.63% |
| 506 | Relative Ranks | C++ | 84.90% |
| 492 | Construct the Rectangle | C++ | 37.15% |
| 283 | Move Zeroes | C++ | 48.38% |
| 455 | Assign Cookies | C++ | 54.53% |
| 453 | Minimum Moves to Equal Array Elements | C++ | 60.87% |
| 383 | Ransom Note | C++ | 45.70% |
| 404 | Sum of Left Leaves | C++ | 71.10% |
| 349 | Intersection of Two Arrays | C++ | 58.20% |
| 504 | Base 7 | C++ | 50.96% |
| 122 | Best Time to Buy and Sell Stock II | C++ | 39.51% |
| 387 | First Unique Character in a String | C++ | 40.30% |
| 171 | Excel Sheet Column Number | C++ | 17.14% |
| 237 | Delete Node in a Linked List | C++ | 41.39% |
| 100 | Same Tree | C++ | 74.14% |
| 242 | Valid Anagram | C++ | 45.13% |
| 169 | Majority Element | C++ | 94.65% |
| 409 | Longest Palindrome | C++ | 84.34% |
| 217 | Contains Duplicate | C++ | 69.17% |
| 206 | Reverse Linked List | C++ | 23.29% |
| 350 | Intersection of Two Arrays II | C++ | 23.29% |
| 13 | Roman to Integer | C++ | 41.14% |
| 401 | Binary Watch | C++ | 5.85% |
| 541 | Reverse String II | C++ | None |
| 268 | Missing Number | C++ | 45.84% |
| 70 | Climbing Stairs | C++ | 1.38% |
| 83 | Remove Duplicates from Sorted List | C++ | 56.86% |
| 53 | Maximum Subarray | C++ | 57.56% |
| 415 | Add Strings | C++ | 36.04% |
| 66 | Plus One | C++ | 20.24% |
| 257 | Binary Tree Paths | C++ | 33.42% |
| 191 | Number of 1 Bits | C++ | 36.18% |
| 342 | Power of Four | C++ | 39.67% |
| 367 | Valid Perfect Square | C++ | 50.79% |
| 9 | Palindrome Number | C++ | 34.02% |
| 557 | Reverse Words in a String III | C++ | None |
| 521 | Longest Uncommon Subsequence I | C++ | None |