Skip to content

Latest commit

 

History

History
624 lines (339 loc) · 10.5 KB

db.md

File metadata and controls

624 lines (339 loc) · 10.5 KB

easy

  1. Two Sum: Your runtime beats 99.86 % of java submissions.

  2. Jewels and Stones: Your runtime beats 16.93 % of java submissions.

  3. To Lower Case: Your runtime beats 100.00 % of java submissions.

  4. Big Countries: Your runtime beats 14.01 % of mysql submissions.

  5. Design Linked List: Your runtime beats 95.40 % of java submissions.

  6. Unique Morse Code Words: Your runtime beats 84.85 % of java submissions.

  7. Sum of Square Numbers: Your runtime beats 21.44 % of java submissions.

  8. N-ary Tree Level Order Traversal: Your runtime beats 86.20 % of java submissions.

  9. Merge Two Binary Trees: Your runtime beats 96.79 % of java submissions.

  10. Employee Importance: Your runtime beats 41.82 % of java submissions.

  11. Peak Index in a Mountain Array

  12. 1-bit and 2-bit Characters

  13. Middle of the Linked List

  14. Number of Lines To Write String

  15. Array Partition I

  16. Plus One

  17. Two Sum II - Input array is sorted

  18. Two Sum IV - Input is a BST

  19. Move Zeroes

  20. Fizz Buzz

  21. Maximum Product of Three Numbers

  22. Remove Element

  23. Reverse Linked List

  24. Delete Node in a Linked List

  25. Remove Linked List Elements

  26. Remove Duplicates from Sorted List

  27. Transpose Matrix

  28. Can Place Flowers

  29. Sort Array By Parity

  30. Monotonic Array

  31. Merge Two Sorted Lists

  32. Search in a Binary Search Tree

  33. Merge Sorted Array

  34. First Bad Version

  35. Search Insert Position

  36. Missing Number

  37. Sort Array By Parity II

  38. Repeated String Match

  39. Maximum Depth of Binary Tree

  40. Maximum Subarray

  41. Binary Gap

  42. Assign Cookies

  43. Binary Search

  44. Unique Email Addresses

  45. Goat Latin

  46. Buddy Strings

  47. Min Stack

  48. Squares of a Sorted Array

  49. N-Repeated Element in Size 2N Array

  50. Robot Return to Origin

  51. Number of 1 Bits

  52. Hamming Distance

  53. Self Dividing Numbers

  54. Fibonacci Number

  55. Not Boring Movies

  56. Contains Duplicate

  57. Lemonade Change

  58. DI String Match

  59. Reverse String

  60. Shortest Distance to a Character

  61. Design HashMap

  62. Reverse Only Letters

  63. Max Consecutive Ones

  64. Univalued Binary Tree

  65. Cousins in Binary Tree

  66. Range Sum of BST

  67. Keyboard Row

  68. Customers Who Never Order

  69. Complement of Base 10 Integer

  70. Number Complement

  71. First Unique Character in a String

  72. Remove All Adjacent Duplicates In String

  73. Binary Tree Level Order Traversal II

  74. Average of Levels in Binary Tree

  75. Subdomain Visit Count

  76. Occurrences After Bigram

  77. Verifying an Alien Dictionary

  78. Duplicate Zeros

  79. Sum of Even Numbers After Queries

  80. Backspace String Compare

  81. Reverse Words in a String III

  82. Add Strings

  83. Reverse String II

  84. Implement strStr()

  85. Defanging an IP Address

  86. Relative Sort Array

  87. Check If a Number Is Majority Element in a Sorted Array

  88. Greatest Common Divisor of Strings

  89. N-ary Tree Preorder Traversal

  90. How Many Numbers Are Smaller Than the Current Number

  91. Number of Steps to Reduce a Number to Zero

  92. Decompress Run-Length Encoded List

  93. Leaf-Similar Trees

  94. Count Negative Numbers in a Sorted Matrix

  95. Maximum 69 Number

  96. Best Time to Buy and Sell Stock II

  97. Valid Anagram

  98. Diameter of Binary Tree

  99. Last Stone Weight

  100. Arranging Coins

  101. Reverse Integer

  102. Palindrome Number

  103. Summary Ranges

  104. Running Sum of 1d Array

  105. Determine if String Halves Are Alike

  106. Convert Sorted Array to Binary Search Tree

  107. Minimum Depth of Binary Tree

  108. Roman to Integer

  109. Decode XORed Array

  110. Path Sum

  111. Binary Tree Tilt

  112. Find the Town Judge

  113. Pairs of Songs With Total Durations Divisible by 60

  114. Word Pattern

  115. Valid Parentheses

  116. Longest Common Prefix

  117. Detect Capital

  118. Valid Mountain Array

  119. Two Sum Less Than K

  120. Find the Difference

  121. Excel Sheet Column Number

  122. Valid Palindrome

  123. Moving Average from Data Stream

  124. Toeplitz Matrix

  125. Valid Word Abbreviation

  126. Valid Palindrome II

  127. Linked List Cycle

  128. Find the Difference

  129. Kth Largest Element in a Stream

  130. Baseball Game

medium

  1. Max Increase to Keep City Skyline: Your runtime beats 25.32 % of java submissions.

  2. Encode and Decode TinyURL: Your runtime beats 51.66 % of java submissions.

  3. Find Peak Element

89. Gray Code

  1. Split Linked List in Parts

  2. Swap Nodes in Pairs

  3. Reverse Linked List II

529. Minesweeper

  1. Remove Duplicates from Sorted List II

  2. Find Minimum in Rotated Sorted Array

  3. Search in Rotated Sorted Array

  4. Teemo Attacking

56. Merge Intervals

  1. Asteroid Collision

  2. Sort Colors

  3. Find First and Last Position of Element in Sorted Array

  4. Insertion Sort List

  5. Sort List

  6. Array Nesting

  7. Remove Comments

  8. Jump Game

  9. Task Scheduler

  10. Beautiful Array

  11. Find And Replace in String

  12. My Calendar I

  13. Odd Even Linked List

  14. Longest Increasing Subsequence

  15. Custom Sort String

  16. Range Sum of BST

  17. Binary Tree Pruning

712. Minimum ASCII Delete Sum for Two Strings

  1. Number of Islands

  2. Remove Duplicates from Sorted Array

  3. Search a 2D Matrix II

  4. Subsets

  5. Max Consecutive Ones III

  6. Validate Binary Search Tree

  7. Binary Tree Inorder Traversal

  8. Binary Tree Preorder Traversal

  9. Perfect Squares

  10. Maximum Product of Word Lengths

  11. Longest Substring Without Repeating Characters

  12. Sort Characters By Frequency

  13. Find and Replace Pattern

  14. Palindromic Substrings

  15. Symmetric Tree

  16. Find Largest Value in Each Tree Row

  17. Basic Calculator II

  18. Binary Tree Level Order Traversal

  19. Sort an Array

  20. Binary Search Tree Iterator

  21. Validate Stack Sequences

  22. Map Sum Pairs

  23. Largest Values From Labels

  24. Statistics from a Large Sample

  25. Car Pooling

  26. Flatten a Multilevel Doubly Linked List

  27. Kth Smallest Element in a BST

  28. Minimum Swaps to Group All 1's Together

  29. Analyze User Website Visit Pattern

  30. Find a Corresponding Node of a Binary Tree in a Clone of That Tree

  31. Flatten Nested List Iterator

  32. Path In Zigzag Labelled Binary Tree

  33. Group Anagrams

  34. Contiguous Array

  35. Product of Array Except Self

  36. Last Stone Weight II

  37. LRU Cache

  38. Peeking Iterator

  39. Flatten Binary Tree to Linked List

  40. Average Waiting Time

  41. Range Sum of Sorted Subarray Sums

  42. Non-decreasing Array

  43. Maximum Binary String After Change

  44. Jump Game II

  45. Group the People Given the Group Size They Belong To

  46. Convert Sorted List to Binary Search Tree

  47. Where Will the Ball Fall

  48. Array Nesting

  49. Sum Root to Leaf Numbers

  50. Copy List with Random Pointer

  51. Reorder List

  52. Single Number III

  53. Word Break

1286. Iterator for Combination

  1. Unique Paths

  2. Interval List Intersections

  3. Jump Game III

  4. Maximum Product Subarray

  5. House Robber

  6. House Robber II

  7. House Robber III

  8. Maximize Distance to Closest Person

  9. Meeting Rooms II

  10. Rotate Image

  11. Container With Most Water

  12. Linked List Cycle II

  13. Check If Word Is Valid After Substitutions

  14. Sequential Digits

  15. Gas Station

  16. Find All Anagrams in a String

  17. Permutation in String

  18. The Earliest Moment When Everyone Become Friends

  19. Number of Provinces

  20. Bomb Enemy

  21. Remove Covered Intervals

  22. Rotate Array

  23. Buildings With an Ocean View

  24. Minimum Add to Make Parentheses Valid

  25. Minimum Number of Swaps to Make the String Balanced

  26. Simplify Path

  27. Remove Duplicates from Sorted Array II

  28. Binary Tree Right Side View

  29. Nested List Weight Sum

  30. Minimum Add to Make Parentheses Valid

  31. Lowest Common Ancestor of a Binary Tree

  32. Accounts Merge

  33. Binary Tree Vertical Order Traversal

  34. Merge Intervals

  35. Convert Binary Search Tree to Sorted Doubly Linked List

  36. Lowest Common Ancestor of a Binary Tree III

  37. Capacity To Ship Packages Within D Days

  38. Next Permutation

  39. Minimum Remove to Make Valid Parentheses

  40. Maximum Length of Repeated Subarray

  41. Brace Expansion

  42. Swapping Nodes in a Linked List

  43. Game of Life

  44. Spiral Matrix II

  45. Convert BST to Greater Tree

  46. Recover Binary Search Tree

  47. Kth Smallest Element in a BST

  48. Trim a Binary Search Tree

hard

  1. Find Minimum in Rotated Sorted Array II

  2. Reverse Nodes in k-Group

316. Remove Duplicate Letters

  1. Merge k Sorted Lists

  2. Special Binary String

  3. Sliding Window Maximum

  4. Odd Even Jump

  5. Binary Tree Postorder Traversal

  6. Find Median from Data Stream

  7. Basic Calculator

  8. Longest Consecutive Sequence

  9. Find in Mountain Array

  10. Count of Smaller Numbers After Self

  11. Binary Tree Maximum Path Sum

  12. Maximum XOR With an Element From Array

  13. Create Maximum Number

  14. Jump Game IV

  15. Data Stream as Disjoint Intervals

=============== Log ===============

  • 2018-09-16: 24-6-0
  • 2018-09-17: 25-7-0
  • 2018-09-18: 26-8-1
  • 2018-09-19: 27-10-1
  • 2018-09-19: 27-10-2
  • 2018-09-27: 29-11-2
  • 2018-10-14: 31-11-2
  • 2018-10-20: 31-12-2
  • 2018-10-25: 32-13-2
  • 2018-10-25: 36-13-2
  • 2018-10-28: 37-13-3
  • 2018-10-29: 37-14-3
  • 2018-11-06: 38-15-3
  • 2018-11-23: 40-17-3
  • 2018-11-24: 42-19-3
  • 2018-11-26: 44-19-3
  • 2018-11-30: 45-20-3
  • 2018-12-04: 45-21-4
  • 2019-01-24: 46-21-5
  • 2019-01-30: 48-22-5
  • 2019-02-22: 52-23-6
  • 2019-03-07: 54-24-6
  • 2019-04-02: 56-25-6
  • 2019-04-08: 58-26-6
  • 2019-04-08: 58-26-6
  • 2019-04-08: 58-26-6
  • 2019-04-21: 60-27-6
  • 2019-05-26: 65-33-6
  • 2019-05-31: 69-38-8
  • 2019-06-01: 70-39-9
  • 2019-06-01: 70-39-8
  • 2019-06-10: 72-45-10
  • 2019-06-15: 74-46-10 | sum: 130
  • 2019-06-21: 77-50-10 | sum: 137
  • 2019-06-26: 78-51-10 | sum: 139
  • 2019-06-26: 78-52-10 | sum: 140
  • 2019-11-16: 88-56-11 | sum: 155
  • 2019-11-16: 88-56-11 | sum: 155
  • 2020-03-02: 89-56-12 | sum: 157
  • 2020-03-14: 91-57-12 | sum: 160
  • 2020-04-01: 92-58-12 | sum: 162
  • 2020-04-05: 95-59-12 | sum: 166
  • 2020-04-15: 98-62-12 | sum: 172
  • 2020-07-01: 98-64-13 | sum: 175
  • 2020-09-19: 99-66-13 | sum: 178
  • 2020-10-27: 99-68-13 | sum: 180
  • 2021-05-05: 103-69-13 | sum: 185
  • 2021-11-06: 109-79-15 | sum: 203
  • 2022-01-01: 109-85-15 | sum: 209
  • 2022-01-17: 113-90-16 | sum: 219
  • 2022-02-21: 120-101-16 | sum: 237
  • 2022-03-08: 123-115-17 | sum: 255
  • 2022-04-09: 129-122-17 | sum: 268
  • 2022-04-21: 130-128-17 | sum: 275