Skip to content

Latest commit

 

History

History
233 lines (117 loc) · 6.45 KB

README.md

File metadata and controls

233 lines (117 loc) · 6.45 KB

Leetcode Problems

problem 771: Jewels and Stones

Problem 897: Increasing Order Search Tree(discussion TBD)

problem 762: Prime Number of Set Bits in Binary Representation

problem 521: Longest Uncommon Subsequence I

problem 292: Nim Game

problem 226: Invert Binary Tree

Problem 429: N-ary Tree Level Order Traversal

problem 896: Monotonic Array

problem 824: Goat Latin

problem 892: Surface Area of 3D Shapes

problem 888: Fair Candy Swap

problem 812: Largest Triangle Area(with discussion, 2-d Convex Hull algorithm)

problem 784: Letter Case Permutation(with discussion, static tree, with pre-allocated memory and BFS visit)

Problem 695: Max Area of Island(with discussion, 2-d UFSet algorithm)

Problem 258: Add Digits

Problem 748: Shortest Completing Word

Problem 283: Move Zeroes

Problem 389: Find the Difference

Problem 520: Detect Capital

Problem 448: Find All Numbers Disappeared in an Array

Problem 696: Count Binary Substrings

Problem 371: Sum of Two Integers

Problem 788: Rotated Digits

Problem 653: Two Sum IV - Input is a BST(with discussion, use two stacks to perform visits in reversed directions)

Problem 606: Construct String from Binary Tree

Problem 171: Excel Sheet Column Number

Problem 169: Majority Element

Problem 237: Delete Node in a Linked List

Problem 13: Roman to Integer

Problem 122: Best Time to Buy and Sell Stock II

Problem 860: Lemonade Change

Problem 242: Valid Anagram

Problem 217: Contains Duplicate

Problem 538: Convert BST to Greater Tree (discussion TBD, with problem 897)

Problem 796: Rotate String

Problem 530: Minimum Absolute Difference in BST

Problem 100: Same Tree

Problem 383: Ransom Note

Problem 717: 1-bit and 2-bit Characters

Problem 706: Design Hashmap

Problem 783: Minimum Distance Between BST Nodes

Problem 453: Minimum Moves to Equal Array Elements

Problem 733: Flood Fill

Problem 404: Sum of Left Leaves

Problem 598: Range Addition II

Problem 447: Number of Boomerangs

Problem 492: Construct the Rectangle

Problem 167: Two Sum II - Input Array is Sorted

Problem 387: First Unique Character in a String

Problem 697: Degree of an Array

Problem 455: Assign Cookies

Problem 108: Convert Sorted Array to Binary Search Tree

Problem 506: Relative Ranks

Problem 661: Image Smoother

Problem 409: Longest Palindrome

Problem 599: Minimum Index Sum of Two Lists

Problem 268: Missing Number

Problem 563: Binary Tree Tilt

Problem 830: Positions of Large Groups

Problem 350: Intersection of Two Arrays II

Problem 543: Diameter of Binary Tree

Problem 551: Student Attendance Record I

Problem 121: Best Time to Buy and Sell Stock

Problem 628: Maximum Product of Three Numbers

Problem 705: Design Hashset

Problem 401: Binary Watch

Problem 746: Min Cost Climbing Stairs(sparse-connected graph)

Problem 107: Binary Tree Level Order Traversal II

Problem 541: Reverse String II

Problem 836: Rectangle Overlap

Problem 925: Long Pressed Name

Problem 21: Merge Two Sorted Lists

Problem 504: Base 7

Problem 458: Poor Pigs

Problem 257: Binary Tree Paths

Problem 844: Backspace String Compare

Problem 202: Happy Number

Problem 674: Longest Continuous Increasing Subsequence

Problem 118: Pascals Triangle

Problem 744: Find Smallest Letter Greater Than Target

Problem 720: Longest Word in Dictionary

Problem 671: Second Minimum Node in a Binary Tree(heap-sort-like algorithm, discussion TBD)

Problem 27: Remove Element

Problem 70: Climbing Stairs(with discussion, Fibonacci sequence)

Problem 415: Add Strings

Problem 235: Lowest Common Ancestor of a Binary Search Tree

Problem 594: Longest Harmonious Subsequence

Problem 704: Binary Search

Problem 53: Maximum Subarray

Problem 101: Symmetric Tree

Problem 703: Kth Largest Element in a Stream

Problem 83: Remove Duplicates from Sorted List

Problem 231: Power of Two

Problem 405: Convert a Number to Hexadecimal

Problem 437: Path Sum III

Problem 326: Power of Three

Problem 191: Number of 1 Bits

Problem 819: Most Common Word

Problem 119: Pascals Triangle II

Problem 232: Implement Queue Using Stacks

Problem 572: Subtree Of Another Tree

Problem 9: Palindrome Number

Problem 198: House Robber(sparse-connected graph, with discussion, with extension: robbing analysis)

Problem 345: Reverse Vowels of a String

Problem 66: Plus One

Problem 35: Search Insert Position

Problem 263: Ugly Number

Problem 645: Set Mismatch

Problem 747: Largest Number At Least Twice of Others

Problem 110: Balanced Binary Tree

Problem 849: Maximize Distance to Closest Person

Problem 724: Find Pivot Index

Problem -1: 兔子过河

Problem 342: Power of Four

Problem -2: 均匀整型随机数产生器