Skip to content

chakwok/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

Total Problem Solved: 275

  • easy: 130
  • medium: 128
  • hard: 17

easy

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

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

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

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

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

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

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

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

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

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

_852. Peak Index in a Mountain Array

_717. 1-bit and 2-bit Characters

_876. Middle of the Linked List

_806. Number of Lines To Write String

_561. Array Partition I

_66. Plus One

_167. Two Sum II - Input array is sorted

_653. Two Sum IV - Input is a BST

_283. Move Zeroes

_412. Fizz Buzz

_628. Maximum Product of Three Numbers

_27. Remove Element

_206. Reverse Linked List

_237. Delete Node in a Linked List

_203. Remove Linked List Elements

_83. Remove Duplicates from Sorted List

_867. Transpose Matrix

_605. Can Place Flowers

_905. Sort Array By Parity

_896. Monotonic Array

_21. Merge Two Sorted Lists

_700. Search in a Binary Search Tree

_88. Merge Sorted Array

_278. First Bad Version

_35. Search Insert Position

_268. Missing Number

_922. Sort Array By Parity II

_686. Repeated String Match

_104. Maximum Depth of Binary Tree

_53. Maximum Subarray

_868. Binary Gap

_455. Assign Cookies

_704. Binary Search

_929. Unique Email Addresses

_824. Goat Latin

_859. Buddy Strings

_155. Min Stack

_977. Squares of a Sorted Array

_961. N-Repeated Element in Size 2N Array

_657. Robot Return to Origin

_191. Number of 1 Bits

_461. Hamming Distance

_728. Self Dividing Numbers

_509. Fibonacci Number

_620. Not Boring Movies

_217. Contains Duplicate

_860. Lemonade Change

_942. DI String Match

_344. Reverse String

_821. Shortest Distance to a Character

_706. Design HashMap

_917. Reverse Only Letters

_485. Max Consecutive Ones

_965. Univalued Binary Tree

_993. Cousins in Binary Tree

_938. Range Sum of BST

_500. Keyboard Row

_183. Customers Who Never Order

_1009. Complement of Base 10 Integer

_476. Number Complement

_387. First Unique Character in a String

_1047. Remove All Adjacent Duplicates In String

_107. Binary Tree Level Order Traversal II

_637. Average of Levels in Binary Tree

_811. Subdomain Visit Count

_1078. Occurrences After Bigram

_953. Verifying an Alien Dictionary

_1089. Duplicate Zeros

_985. Sum of Even Numbers After Queries

_844. Backspace String Compare

_557. Reverse Words in a String III

_415. Add Strings

_541. Reverse String II

_28. Implement strStr()

_1108. Defanging an IP Address

_1122. Relative Sort Array

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

_1071. Greatest Common Divisor of Strings

_589. N-ary Tree Preorder Traversal

_1365. How Many Numbers Are Smaller Than the Current Number

_1342. Number of Steps to Reduce a Number to Zero

_1313. Decompress Run-Length Encoded List

_872. Leaf-Similar Trees

_1351. Count Negative Numbers in a Sorted Matrix

_1323. Maximum 69 Number

_122. Best Time to Buy and Sell Stock II

_242. Valid Anagram

_543. Diameter of Binary Tree

_1046. Last Stone Weight

_441. Arranging Coins

_7. Reverse Integer

_9. Palindrome Number

_228. Summary Ranges

_1480. Running Sum of 1d Array

_1704. Determine if String Halves Are Alike

_108. Convert Sorted Array to Binary Search Tree

_111. Minimum Depth of Binary Tree

_13. Roman to Integer

_1720. Decode XORed Array

_112. Path Sum

_563. Binary Tree Tilt

_997. Find the Town Judge

_1010. Pairs of Songs With Total Durations Divisible by 60

_290. Word Pattern

_20. Valid Parentheses

_14. Longest Common Prefix

_520. Detect Capital

_941. Valid Mountain Array

_1099. Two Sum Less Than K

_389. Find the Difference

_171. Excel Sheet Column Number

_125. Valid Palindrome

_346. Moving Average from Data Stream

_766. Toeplitz Matrix

_408. Valid Word Abbreviation

_680. Valid Palindrome II

_141. Linked List Cycle

_389. Find the Difference

_703. Kth Largest Element in a Stream

_682. Baseball Game

medium

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

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

_162. Find Peak Element

89. Gray Code

_725. Split Linked List in Parts

_24. Swap Nodes in Pairs

_92. Reverse Linked List II

529. Minesweeper

_82. Remove Duplicates from Sorted List II

_153. Find Minimum in Rotated Sorted Array

_33. Search in Rotated Sorted Array

_495. Teemo Attacking

56. Merge Intervals

_735. Asteroid Collision

_75. Sort Colors

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

_147. Insertion Sort List

_148. Sort List

_565. Array Nesting

_722. Remove Comments

_55. Jump Game

_621. Task Scheduler

_932. Beautiful Array

_833. Find And Replace in String

_729. My Calendar I

_328. Odd Even Linked List

_300. Longest Increasing Subsequence

_791. Custom Sort String

_938. Range Sum of BST

_814. Binary Tree Pruning

712. Minimum ASCII Delete Sum for Two Strings

_200. Number of Islands

_26. Remove Duplicates from Sorted Array

_240. Search a 2D Matrix II

_78. Subsets

_1004. Max Consecutive Ones III

_98. Validate Binary Search Tree

_94. Binary Tree Inorder Traversal

_144. Binary Tree Preorder Traversal

_279. Perfect Squares

_318. Maximum Product of Word Lengths

_3. Longest Substring Without Repeating Characters

_451. Sort Characters By Frequency

_890. Find and Replace Pattern

_647. Palindromic Substrings

_101. Symmetric Tree

_515. Find Largest Value in Each Tree Row

_227. Basic Calculator II

_102. Binary Tree Level Order Traversal

_912. Sort an Array

_173. Binary Search Tree Iterator

_946. Validate Stack Sequences

_677. Map Sum Pairs

_1090. Largest Values From Labels

_1093. Statistics from a Large Sample

_1094. Car Pooling

_430. Flatten a Multilevel Doubly Linked List

_230. Kth Smallest Element in a BST

_1151. Minimum Swaps to Group All 1's Together

_1152. Analyze User Website Visit Pattern

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

_341. Flatten Nested List Iterator

_1104. Path In Zigzag Labelled Binary Tree

_49. Group Anagrams

_525. Contiguous Array

_238. Product of Array Except Self

_1049. Last Stone Weight II

_146. LRU Cache

_284. Peeking Iterator

_114. Flatten Binary Tree to Linked List

_1701. Average Waiting Time

_1508. Range Sum of Sorted Subarray Sums

_665. Non-decreasing Array

_1702. Maximum Binary String After Change

_45. Jump Game II

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

_109. Convert Sorted List to Binary Search Tree

_1706. Where Will the Ball Fall

_565. Array Nesting

_129. Sum Root to Leaf Numbers

_138. Copy List with Random Pointer

_143. Reorder List

_260. Single Number III

_139. Word Break

1286. Iterator for Combination

_62. Unique Paths

_986. Interval List Intersections

_1306. Jump Game III

_152. Maximum Product Subarray

_198. House Robber

_213. House Robber II

_337. House Robber III

_849. Maximize Distance to Closest Person

_253. Meeting Rooms II

_48. Rotate Image

_11. Container With Most Water

_142. Linked List Cycle II

_1003. Check If Word Is Valid After Substitutions

_1291. Sequential Digits

_134. Gas Station

_438. Find All Anagrams in a String

_567. Permutation in String

_1101. The Earliest Moment When Everyone Become Friends

_547. Number of Provinces

_361. Bomb Enemy

_1288. Remove Covered Intervals

_189. Rotate Array

_1762. Buildings With an Ocean View

_921. Minimum Add to Make Parentheses Valid

_1963. Minimum Number of Swaps to Make the String Balanced

_71. Simplify Path

_80. Remove Duplicates from Sorted Array II

_199. Binary Tree Right Side View

_339. Nested List Weight Sum

_921. Minimum Add to Make Parentheses Valid

_236. Lowest Common Ancestor of a Binary Tree

_721. Accounts Merge

_314. Binary Tree Vertical Order Traversal

_56. Merge Intervals

_426. Convert Binary Search Tree to Sorted Doubly Linked List

_1650. Lowest Common Ancestor of a Binary Tree III

_1011. Capacity To Ship Packages Within D Days

_31. Next Permutation

_1249. Minimum Remove to Make Valid Parentheses

_718. Maximum Length of Repeated Subarray

_1087. Brace Expansion

_1721. Swapping Nodes in a Linked List

_289. Game of Life

_59. Spiral Matrix II

_538. Convert BST to Greater Tree

_99. Recover Binary Search Tree

_230. Kth Smallest Element in a BST

_669. Trim a Binary Search Tree

hard

_154. Find Minimum in Rotated Sorted Array II

_25. Reverse Nodes in k-Group

316. Remove Duplicate Letters

_23. Merge k Sorted Lists

_761. Special Binary String

_239. Sliding Window Maximum

_975. Odd Even Jump

_145. Binary Tree Postorder Traversal

_295. Find Median from Data Stream

_224. Basic Calculator

_128. Longest Consecutive Sequence

_1095. Find in Mountain Array

_315. Count of Smaller Numbers After Self

_124. Binary Tree Maximum Path Sum

_1707. Maximum XOR With an Element From Array

_321. Create Maximum Number

_1345. Jump Game IV

_352. 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

About

Central repo of leetcode submissions & notes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published