liuxuhelloworld's notebook

Problem1-Two Sum

Problem167-Two Sum

Problem15-Three Sum

Problem18-Four Sum

Problem16-Three Sum Closest


Problem2-Add Two Numbers

Problem445-Two Sum

Problem415-Add Strings

Problem43-Multiply Strings


Problem3-Longest Substring Without Repeating Characters

Problem5-Longest Palindromic Substring


Problem5-Longest Palindromic Substring

Problem9-Palindrome Number

Problem125-Valid Palindrome

Problem409-Longest Palindrome


Problem4-Median of Two Sorted Arrays

Problem33-Search in Rotated Sorted Array

Problem81-Search in Rotated Sorted Array

Problem153-Find Minimum in Rotated Sorted Array


Problem34-Find First and Last Position of Elements in Sorted Array

Problem278-First Bad Version


Problem6-ZigZag Conversion


Problem7-Reverse Integer

Problem8-String to Integer


Problem11-Container With Most Water

Problem45-Jump Game

Problem55-Jump Game

Problem2178-Maximum Split of Positive Even Integers


Problem12-Integer to Roman


Problem17-Letter Combinations of Phone Numbers

Problem19-Remove Nth Node From End of List

Problem21-Merge Two Sorted Lists

Problem22-Generate Parentheses

Problem35-Search Insert Position

Problem39-Combination Sum

Problem40-Combination Sum

Problem46-Permutations

Problem47-Permutations

Problem62-Unique Paths

Problem70-Climbing Stairs

Problem74-Search 2D Matrix

Problem77-Combinations

Problem78-Subsets

Problem79-Word Search

Problem82-Remove Duplicates From Sorted List

Problem83-Remove Duplicates From Sorted List

Problem89-Gray Code

Problem90-Subsets

Problem91-Decode Ways

Problem92-Reverse Linked List

Problem93-Restore IP Addresses

Problem95-Unique Binary Search Trees

Problem96-Unique Binary Search Trees

Problem97-Interleaving String

Problem98-Validate Binary Search Tree

Problem99-Recover Binary Search Tree

Problem102-Binary Tree Level Order Traversal

Problem103-Binary Tree Zigzag Level Order Traversal

Problem105-Construct Binary Tree from Preorder and Inorder Traversal

Problem106-Construct Binary Tree from Inorder and Postorder Traversal

Problem107-Binary Tree Level Order Traversal

Problem113-Path Sum

Problem116-Populating Next Right Pointers in Each Node

Problem117-Populating Next Right Pointers in Each Node

Problem120-Triangle

Problem130-Surrounded Regions

Problem136-Single Number

Problem139-Word Break

Problem142-Linked List Cycle

Problem162-Find Peak Element

Problem187-Repeated DNA sequences

Problem189-Rotate Array

Problem190-Reverse Bits

Problem191-Number of 1 Bits

Problem198-House Robber

Problem200-Number of Islands

Problem206-Reverse Linked List

Problem209-Minimum Size Subarray Sum

Problem231-Power of Two

Problem283-Move Zeroes

Problem337-House Robber III

Problem344-Reverse String

Problem393-UTF8 Validation

Problem401-Binary Watch

Problem438-Find All Anagrams in String

Problem449-Serialize and Deserialize BST

Problem542-01 Matrix

Problem547-Number of Provines

Problem557-Reverse Words In String

Problem567-Permutation in String

Problem572-Subtree of Another Tree

Problem617-Merge Two Binary Trees

Problem695-Max Area of Island

Problem704-Binary Search

Problem713-Subarray Product Less Than K

Problem733-Flood Fill

Problem767-Reorganize String

Problem784-Letter Case Permutation

Problem797-All Paths From Source to Target

Problem844-Backspace String Compare

Problem846-Hand of Straights

Problem876-Middle of Linked List

Problem977-Squares of Sorted Array

Problem986-Interval List Intersections

Problem994-Rotting Oranges

Problem1015-Smallest Integer Divisible by K

Problem1026-Maximum Difference Between Node and Ancestor

Problem1053-Previous Permutation with One Swap

Problem1091-Shortest Path in Binary Matrix

Problem1105-Filling Bookcase Shelves

Problem1110-Delete Nodes And Return Forest

Problem1123-Lowest Common Ancestor of Deepest Leaves

Problem1129-Shortest Path with Alternating Colors

Problem1222-Queens That Can Attack the Queue

Problem1362-Closest Divisors

Problem1604-Alert Using Same Key-Card Three or More Times in a One Hour Period

Problem1664-Ways to Make a Fair Array

Problem1669-Merge In Between Linked Lists

Problem2106-Maximum Fruits Harvested After at Most K Steps

Problem2319-Check if Matrix is X-Matrix

Problem2325-Decode the Message

Problem2347-Best Poker Hand

Problem2352-Equal Row and Column Pairs

Problem2383-Minimum Hours of Training to Win a Competition

Problem2409-Count Days Spent Together

Problem2437-Number of Valid Clock Times

Problem2481-Minimum Cuts to Divide a Circle

Problem2544-Alternating Digit Sum

Problem2596-Check Knight Tour Configuration

Problem2611-Mice and Cheese