/leetcode-1

leetcode notes (1st)

Primary LanguageJava

leetcode

一刷leetcode

April 10

  • Single Number (Bit Manipulation)
  • Jewels and Stones
  • Nim Game

April 11

  • Two Sum
  • Two Sum II - Input array is sorted
  • Two Sum III - Data structure design

April 12

  • Friend Circles(Union Find)

April 13

  • Detect Capital

April 14

有事停一天

April 15 (12题)

  • Single Number II (Bit Manipulation)
  • Single Number III (Bit Manipulation)
  • Couples Holding Hands(Union Find)
  • Power of Two

April 16

  • Power of Three
  • Happy Number
  • Plus One

April 17

  • Contains Duplicate
  • Contains DuplicateII
  • Contains DuplicateIII

April 18

  • Redundant Connection(Union Find)
  • Reverse Integer
  • Number of Connected Components in an Undirected Graph(Union Find)

April 19

  • Delete Node in a Linked List
  • Reverse Linked List
  • Merge Two Sorted Lists

April 20

  • Linked List Cycle

April 21

  • Linked List Components
  • Remove Duplicates from Sorted List

April 22 (18题)

  • Remove Linked List Elements
  • Palindrome Linked List
  • Odd Even Linked List

April 23

  • Min Stack
  • Implement Queue using Stacks
  • Add Digits
  • Move Zeroes

April 24

  • Excel Sheet Column Number
  • Plus One
  • Find Minimum in Rotated Sorted Array

April 25

  • Encode and Decode TinyURL
  • Self Dividing Numbers
  • Complex Number Multiplication

April 26

  • Optimal Division(缺:divide and conquer)
  • Integer Break
  • Count Numbers with Unique Digits

April 27

  • Palindrome Number

April 28

  • Valid Anagram
  • Merge Intervals

April 29 (16题)

浪了一天:D

April 30

  • Sort Colors
  • Largest Number
  • Intersection of Two Arrays

May 1-6 (8题)

  • Maximum Gap
  • Majority Element
  • 签证神游~
  • Roman to Integer
  • Max Chunks To Make Sorted
  • Pascal's Triangle

May 7

  • Maximum Depth of Binary Tree
  • Invert Binary Tree
  • Same Tree
  • Duplicate Emails (DB)
  • Binary Tree Preorder Traversal

May 8

  • Symmetric Tree
  • Binary Tree Level Order Traversal
  • Container With Most Water

May 9

  • Integer to Roman
  • Remove Nth Node From End of List
  • Valid Parentheses (缺:DP)
  • Swap Nodes in Pairs
  • Combine Two Tables (DB)

May 10

  • Remove Duplicates from Sorted List II
  • Sqrt(x)
  • Partition List

May 11

  • Second Highest Salary (DB)
  • Add Binary
  • Implement strStr()
  • Longest Common Prefix

May 12 & 13(22题)

  • Merge Sorted Array
  • First Bad Version

May 14

  • Median of Two Sorted Arrays
  • Pascal's Triangle II

May 15

太累了,啥都没干

May 16

  • Subsets
  • Subsets II

May 17

  • Permutations
  • Permutations II
  • Permutation Seqguence
  • Employees Earning More Than Their Managers(DB)

May 18&19

  • Add Two Numbers
  • Remove Duplicates from Sorted Array
  • Valid Palindrome

May 20 (13)

太累了,啥都没干

May 21

  • Combinations
  • Combination Sum
  • Combination Sum II
  • Customers Who Never Order (DB)

May 22-24

  • Length of Last Word
  • Find Peak Element
  • Rising Temperature(DB)
  • Excel Sheet Column Title

May 25

  • Binary Tree Inorder Traversal
  • Binary Tree Postorder Traversal