/leetcode

LeetCode Problems' Solutions

Primary LanguageC++

leetcode

LeetCode Problems' Solutions with Google Test case

These are all my own approaches, May be it's not the fastest, but the easy understand.

# Title Solution Difficulty Algorithm
34 Subdomain Visit Count C++ Medium
33 Text Justification C++ Hard
32 Insertion Sort List Discuss C++ Medium
31 Range Sum Of BST Discuss C++ Easy
30 Reverse Bits Discuss C++ Easy
29 Single Number Discuss C++ Easy
28 Number Of 1 Bits Discuss C++ Easy
27 Power Of Two Discuss C++ Easy
26 Fibonacci Number C++ Easy
25 Reverse Linked List Discuss C++ Easy
24 Same Tree C++ Easy Recursion
23 Merge Two Binary Trees C++ Easy DFS
22 Max Area of Island Discuss C++ Medium Recursion
21 Flood Fill C++ Easy Recursion
20 Permutation In String C++ Medium Sliding Window
19 Remove Nth Node From End of List C++ Medium
18 Middle of the Linked List C++ Easy
17 Reverse String C++ Easy
16 Reverse Words in a String III C++ Easy
15 Product of Array Except Self C++ Medium
14 Two Sum II - Input Array Is Sorted C++ Easy
13 Move Zeroes C++ Easy
12 Rotate List C++ Medium
11 Rotate Array C++ Medium
10 Squares of a Sorted Array C++ Easy
9 First Bad Version C++ Easy
8 Maximum Subarray C++ Easy
7 Remove Duplicates from Sorted List II C++ Medium
6 Remove Duplicates from Sorted List C++ Easy
5 Palindrome Number C++ Easy
4 Median of Two Sorted Arrays C++ Hard
3 Valid Parentheses C++ Easy
2 Merge k Sorted Lists C++ Hard
1 Longest Substring Without Repeating Characters C++ Medium