Skip to content

xfmeng17/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCode

LeetCode Solutions

This framework is a total COPY from walkccc, Thanks a lot. And I will fill it with my code and notes.

Getting Started

In this repository, I'll work on solutions to all LeetCode problems by C++, Java, and Python.

Coding Style

I believe messy code is costing you.

Besides, this is the convention I follow for consistency.

More Information

The repository is still under construction, and the goal is to keep up with the growth of LeetCode problems by Aug 2020!

For more information, please visit my GitHub.

By Egg Meng on Feb 23, 2019.

Revised on Dec 25, 2019.

Problem Sets

# Title Solution Difficulty
0001 Two Sum C++, Python3, Java Easy
0002 Add Two Numbers C++, Python3 Medium
0003 Longest Substring Without Repeating Characters C++, Python3 Medium
0004 Median of Two Sorted Arrays C++, Python3, Java Hard
0005 Longest Palindromic Substring C++, Python3 Medium
0006 ZigZag Conversion C++, Python3 Medium
0007 Reverse Integer C++, Python3 Easy
0008 String to Integer (atoi) C++, Python3 Medium
0009 Palindrome Number C++, Python3 Easy
0010 Regular Expression Matching C++, Python3 Hard
0011 Container With Most Water C++, Python3, Java Medium
0012 Integer to Roman C++, Python3 Medium
0013 Roman to Integer C++, Python3 Easy
0014 Longest Common Prefix C++, Python3 Easy
0015 3Sum C++, Python3, Java Medium
0016 3Sum Closest C++, Python3, Java Medium
0017 Letter Combinations of a Phone Number C++, Python3 Medium
0018 4Sum C++, Python3, Java Medium
0019 Remove Nth Node From End of List C++, Python3 Medium
0020 Valid Parentheses C++, Python3 Easy
0021 Merge Two Sorted Lists C++, Python3 Easy
0022 Generate Parentheses C++, Python3 Medium
0023 Merge k Sorted Lists C++, Python3 Hard
0024 Swap Nodes in Pairs C++, Python3 Medium
0025 Reverse Nodes in k-Group C++, Python3 Hard
0026 Remove Duplicates from Sorted Array C++, Python3, Java Easy
0027 Remove Element C++, Python3, Java Easy
0028 Implement strStr() C++, Python3 Easy
0029 Divide Two Integers C++, Python3 Medium
0030 Substring with Concatenation of All Words C++, Python3 Hard
0031 Next Permutation C++, Python3, Java Medium
0032 Longest Valid Parentheses C++, Python3 Hard
0033 Search in Rotated Sorted Array C++, Python3, Java Medium
0034 Find First and Last Position of Element in Sorted Array C++, Python3, Java Medium
0035 Search Insert Position C++, Python3, Java Easy
0036 Valid Sudoku Python3 Medium
0037 Sudoku Solver C++, Python3 Hard
0038 Count and Say C++, Python3 Easy
0039 Combination Sum C++, Python3, Java Medium
0040 Combination Sum II C++, Python3, Java Medium
0041 First Missing Positive C++, Python3, Java Hard
0042 Trapping Rain Water C++, Python3, Java Hard
0043 Multiply Strings Python3 Medium
0044 Wildcard Matching C++, Python3 Hard
0045 Jump Game II C++, Python3, Java Hard
0046 Permutations C++, Python3 Medium
0047 Permutations II C++, Python3 Medium
0048 Rotate Image C++, Python3, Java Medium
0049 Group Anagrams C++, Python3 Medium
0050 Pow(x, n) C++, Python3 Medium
0051 N-Queens C++, Python3 Hard
0052 N-Queens II C++, Python3 Hard
0053 Maximum Subarray C++, Python3, Java Easy
0054 Spiral Matrix C++, Python3, Java Medium
0055 Jump Game C++, Python3, Java Medium
0056 Merge Intervals C++, Python3, Java Medium
0057 Insert Interval C++, Python3, Java Hard
0058 Length of Last Word C++, Python3 Easy
0059 Spiral Matrix II C++, Python3, Java Medium
0060 Permutation Sequence C++, Python3 Medium
0061 Rotate List C++, Python3 Medium
0062 Unique Paths C++, Python3, Java Medium
0063 Unique Paths II C++, Python3, Java Medium
0064 Minimum Path Sum C++, Python3, Java Medium
0065 Valid Number Python3 Hard
0066 Plus One C++, Python3, Java Easy
0067 Add Binary C++, Python3 Easy
0068 Text Justification C++, Python3 Hard
0069 Sqrt(x) C++, Python3 Easy
0070 Climbing Stairs C++, Python3 Easy
0071 Simplify Path C++, Python3 Medium
0072 Edit Distance C++, Python3 Hard
0073 Set Matrix Zeroes C++, Python3, Java Medium
0074 Search a 2D Matrix C++, Python3, Java Medium
0075 Sort Colors C++, Python3, Java Medium
0076 Minimum Window Substring C++, Python3 Hard
0077 Combinations C++, Python3 Medium
0078 Subsets C++, Python3, Java Medium
0079 Word Search C++, Python3, Java Medium
0080 Remove Duplicates from Sorted Array II C++, Python3, Java Medium
0081 Search in Rotated Sorted Array II C++, Python3, Java Medium
0082 Remove Duplicates from Sorted List II C++, Python3 Medium
0083 Remove Duplicates from Sorted List C++, Python3 Easy
0084 Largest Rectangle in Histogram C++, Python3, Java Hard
0085 Maximal Rectangle C++, Python3, Java Hard
0086 Partition List C++, Python3 Medium
0087 Scramble String Hard
0088 Merge Sorted Array C++, Python3, Java Easy
0089 Gray Code C++, Python3 Medium
0090 Subsets II C++, Python3, Java Medium
0091 Decode Ways C++, Python3 Medium
0092 Reverse Linked List II C++, Python3 Medium
0093 Restore IP Addresses C++, Python3 Medium
0094 Binary Tree Inorder Traversal C++, Python3, Java Medium
0095 Unique Binary Search Trees II C++, Python3 Medium
0096 Unique Binary Search Trees C++, Python3 Medium
0097 Interleaving String C++, Python3 Hard
0098 Validate Binary Search Tree C++, Python3 Medium
0099 Recover Binary Search Tree Hard
0100 Same Tree C++, Python3 Easy
0101 Symmetric Tree C++, Python3 Easy
0102 Binary Tree Level Order Traversal C++, Python3 Medium
0103 Binary Tree Zigzag Level Order Traversal C++, Python3 Medium
0104 Maximum Depth of Binary Tree C++, Python3 Easy
0105 Construct Binary Tree from Preorder and Inorder Traversal C++, Python3, Java Medium
0106 Construct Binary Tree from Inorder and Postorder Traversal C++, Python3, Java Medium
0107 Binary Tree Level Order Traversal II C++, Python3 Easy
0108 Convert Sorted Array to Binary Search Tree C++, Python3 Easy
0109 Convert Sorted List to Binary Search Tree C++, Python3 Medium
0110 Balanced Binary Tree C++, Python3 Easy
0111 Minimum Depth of Binary Tree C++, Python3 Easy
0112 Path Sum C++, Python3 Easy
0113 Path Sum II C++, Python3 Medium
0114 Flatten Binary Tree to Linked List C++, Python3 Medium
0115 Distinct Subsequences C++, Python3 Hard
0116 Populating Next Right Pointers in Each Node C++, Python3 Medium
0117 Populating Next Right Pointers in Each Node II C++, Python3 Medium
0118 Pascal's Triangle C++, Python3, Java Easy
0119 Pascal's Triangle II C++, Python3, Java Easy
0120 Triangle C++, Python3, Java Medium
0121 Best Time to Buy and Sell Stock C++, Python3, Java Easy
0122 Best Time to Buy and Sell Stock II C++, Python3, Java Easy
0123 Best Time to Buy and Sell Stock III C++, Python3, Java Hard
0124 Binary Tree Maximum Path Sum C++, Python3 Hard
0125 Valid Palindrome C++, Python3 Easy
0126 Word Ladder II C++, Python3, Java Hard
0127 Word Ladder C++, Python3, Java Medium
0128 Longest Consecutive Sequence C++, Python3, Java Hard
0129 Sum Root to Leaf Numbers C++, Python3 Medium
0130 Surrounded Regions C++, Python3 Medium
0131 Palindrome Partitioning C++, Python3 Medium
0132 Palindrome Partitioning II C++, Python3 Hard
0133 Clone Graph C++, Python3 Medium
0134 Gas Station C++, Python3 Medium
0135 Candy Hard
0136 Single Number C++, Python3 Easy
0137 Single Number II C++, Python3 Medium
0138 Copy List with Random Pointer C++, Python3 Medium
0139 Word Break C++ Medium
0140 Word Break II C++ Hard
0141 Linked List Cycle C++, Python3, Java Easy
0142 Linked List Cycle II C++, Python3, Java Medium
0143 Reorder List C++, Python3 Medium
0144 Binary Tree Preorder Traversal C++, Python3 Medium
0145 Binary Tree Postorder Traversal C++, Python3 Hard
0146 LRU Cache C++ Medium
0147 Insertion Sort List C++, Python3 Medium
0148 Sort List C++ Medium
0149 Max Points on a Line C++ Hard
0150 Evaluate Reverse Polish Notation C++, Python3 Medium
0151 Reverse Words in a String C++ Medium
0152 Maximum Product Subarray C++, Python3, Java Medium
0153 Find Minimum in Rotated Sorted Array C++, Python3, Java Medium
0154 Find Minimum in Rotated Sorted Array II C++, Python3, Java Hard
0155 Min Stack C++, Python3 Easy
0156 Binary Tree Upside Down πŸ”’ Medium
0157 Read N Characters Given Read4 πŸ”’ Easy
0158 Read N Characters Given Read4 II - Call multiple times πŸ”’ Hard
0159 Longest Substring with At Most Two Distinct Characters πŸ”’ Medium
0160 Intersection of Two Linked Lists C++ Easy
0161 One Edit Distance πŸ”’ Medium
0162 Find Peak Element C++, Python3, Java Medium
0163 Missing Ranges πŸ”’ Medium
0164 Maximum Gap Hard
0165 Compare Version Numbers C++ Medium
0166 Fraction to Recurring Decimal C++ Medium
0167 Two Sum II - Input array is sorted C++, Python3, Java Easy
0168 Excel Sheet Column Title C++, Python3 Easy
0169 Majority Element C++, Python3, Java Easy
0170 Two Sum III - Data structure design πŸ”’ Easy
0171 Excel Sheet Column Number C++, Python3 Easy
0172 Factorial Trailing Zeroes C++, Python3 Easy
0173 Binary Search Tree Iterator C++, Python3 Medium
0174 Dungeon Game C++, Python3 Hard
0175 Combine Two Tables Easy
0176 Second Highest Salary Easy
0177 Nth Highest Salary Medium
0178 Rank Scores Medium
0179 Largest Number C++ Medium
0180 Consecutive Numbers Medium
0181 Employees Earning More Than Their Managers Easy
0182 Duplicate Emails Easy
0183 Customers Who Never Order Easy
0184 Department Highest Salary Medium
0185 Department Top Three Salaries Hard
0186 Reverse Words in a String II πŸ”’ Medium
0187 Repeated DNA Sequences C++, Python3 Medium
0188 Best Time to Buy and Sell Stock IV C++, Python3, Java Hard
0189 Rotate Array C++, Python3, Java Easy
0190 Reverse Bits C++ Easy
0191 Number of 1 Bits C++ Easy
0192 Word Frequency Medium
0193 Valid Phone Numbers Easy
0194 Transpose File Medium
0195 Tenth Line Easy
0196 Delete Duplicate Emails Easy
0197 Rising Temperature Easy
0198 House Robber C++, Python3 Easy
0199 Binary Tree Right Side View C++, Python3 Medium
0200 Number of Islands C++, Python3 Medium
0201 Bitwise AND of Numbers Range C++, Python3 Medium
0202 Happy Number C++, Python3 Easy
0203 Remove Linked List Elements C++, Python3 Easy
0204 Count Primes C++, Python3 Easy
0205 Isomorphic Strings C++, Python3 Easy
0206 Reverse Linked List C++, Python3 Easy
0207 Course Schedule C++ Medium
0208 Implement Trie (Prefix Tree) C++, Python3, Java Medium
0209 Minimum Size Subarray Sum C++, Python3, Java Medium
0210 Course Schedule II C++ Medium
0211 Add and Search Word - Data structure design C++, Python3, Java Medium
0212 Word Search II C++, Python3, Java Hard
0213 House Robber II C++, Python3 Medium
0214 Shortest Palindrome Hard
0215 Kth Largest Element in an Array C++ Medium
0216 Combination Sum III C++, Python3, Java Medium
0217 Contains Duplicate C++, Python3, Java Easy
0218 The Skyline Problem C++ Hard
0219 Contains Duplicate II C++, Python3, Java Easy
0220 Contains Duplicate III Medium
0221 Maximal Square C++, Python3 Medium
0222 Count Complete Tree Nodes C++, Python3 Medium
0223 Rectangle Area C++, Python3 Medium
0224 Basic Calculator Hard
0225 Implement Stack using Queues Easy
0226 Invert Binary Tree Easy
0227 Basic Calculator II Medium
0228 Summary Ranges C++, Python3, Java Medium
0229 Majority Element II C++, Python3, Java Medium
0230 Kth Smallest Element in a BST C++, Python3 Medium
0231 Power of Two Easy
0232 Implement Queue using Stacks Easy
0233 Number of Digit One Hard
0234 Palindrome Linked List C++ Easy
0235 Lowest Common Ancestor of a Binary Search Tree Easy
0236 Lowest Common Ancestor of a Binary Tree C++, Python3 Medium
0237 Delete Node in a Linked List C++, Python3 Easy
0238 Product of Array Except Self C++, Python3, Java Medium
0239 Sliding Window Maximum C++, Python3 Hard
0240 Search a 2D Matrix II C++, Python3 Medium
0241 Different Ways to Add Parentheses C++, Python3 Medium
0242 Valid Anagram C++, Python3 Easy
0243 Shortest Word Distance πŸ”’ Easy
0244 Shortest Word Distance II πŸ”’ Medium
0245 Shortest Word Distance III πŸ”’ Medium
0246 Strobogrammatic Number πŸ”’ Easy
0247 Strobogrammatic Number II πŸ”’ Medium
0248 Strobogrammatic Number III πŸ”’ Hard
0249 Group Shifted Strings πŸ”’ Medium
0250 Count Univalue Subtrees πŸ”’ Medium
0251 Flatten 2D Vector πŸ”’ Medium
0252 Meeting Rooms πŸ”’ Easy
0253 Meeting Rooms II πŸ”’ Medium
0254 Factor Combinations πŸ”’ Medium
0255 Verify Preorder Sequence in Binary Search Tree πŸ”’ Medium
0256 Paint House πŸ”’ Easy
0257 Binary Tree Paths Easy
0258 Add Digits Easy
0259 3Sum Smaller πŸ”’ Medium
0260 Single Number III C++, Python3 Medium
0261 Graph Valid Tree πŸ”’ Medium
0262 Trips and Users Hard
0263 Ugly Number C++, Python3 Easy
0264 Ugly Number II C++, Python3 Medium
0265 Paint House II πŸ”’ Hard
0266 Palindrome Permutation πŸ”’ Easy
0267 Palindrome Permutation II πŸ”’ Medium
0268 Missing Number C++, Python3, Java Easy
0269 Alien Dictionary πŸ”’ Hard
0270 Closest Binary Search Tree Value πŸ”’ Easy
0271 Encode and Decode Strings πŸ”’ Medium
0272 Closest Binary Search Tree Value II πŸ”’ Hard
0273 Integer to English Words Hard
0274 H-Index C++ Medium
0275 H-Index II C++ Medium
0276 Paint Fence πŸ”’ Easy
0277 Find the Celebrity πŸ”’ Medium
0278 First Bad Version C++, Python3 Easy
0279 Perfect Squares Medium
0280 Wiggle Sort πŸ”’ Medium
0281 Zigzag Iterator πŸ”’ Medium
0282 Expression Add Operators Hard
0283 Move Zeroes C++, Python3, Java Easy
0284 Peeking Iterator Medium
0285 Inorder Successor in BST πŸ”’ Medium
0286 Walls and Gates πŸ”’ Medium
0287 Find the Duplicate Number C++, Python3, Java Medium
0288 Unique Word Abbreviation πŸ”’ Medium
0289 Game of Life C++, Python3, Java Medium
0290 Word Pattern Easy
0291 Word Pattern II πŸ”’ Hard
0292 Nim Game Easy
0293 Flip Game πŸ”’ Easy
0294 Flip Game II πŸ”’ Medium
0295 Find Median from Data Stream Hard
0296 Best Meeting Point πŸ”’ Hard
0297 Serialize and Deserialize Binary Tree Hard
0298 Binary Tree Longest Consecutive Sequence πŸ”’ Medium
0299 Bulls and Cows C++ Easy
0300 Longest Increasing Subsequence Medium
0301 Remove Invalid Parentheses Hard
0302 Smallest Rectangle Enclosing Black Pixels πŸ”’ Hard
0303 Range Sum Query - Immutable Easy
0304 Range Sum Query 2D - Immutable Medium
0305 Number of Islands II πŸ”’ Hard
0306 Additive Number Medium
0307 Range Sum Query - Mutable Medium
0308 Range Sum Query 2D - Mutable πŸ”’ Hard
0309 Best Time to Buy and Sell Stock with Cooldown C++, Python3, Java Medium
0310 Minimum Height Trees Medium
0311 Sparse Matrix Multiplication πŸ”’ Medium
0312 Burst Balloons Hard
0313 Super Ugly Number C++, Python3 Medium
0314 Binary Tree Vertical Order Traversal πŸ”’ Medium
0315 Count of Smaller Numbers After Self Hard
0316 Remove Duplicate Letters Hard
0317 Shortest Distance from All Buildings πŸ”’ Hard
0318 Maximum Product of Word Lengths Medium
0319 Bulb Switcher C++, Python3 Medium
0320 Generalized Abbreviation πŸ”’ Medium
0321 Create Maximum Number Hard
0322 Coin Change Go Medium
0323 Number of Connected Components in an Undirected Graph πŸ”’ Medium
0324 Wiggle Sort II Medium
0325 Maximum Size Subarray Sum Equals k πŸ”’ Medium
0326 Power of Three Easy
0327 Count of Range Sum Hard
0328 Odd Even Linked List C++ Medium
0329 Longest Increasing Path in a Matrix Hard
0330 Patching Array Hard
0331 Verify Preorder Serialization of a Binary Tree Medium
0332 Reconstruct Itinerary Medium
0333 Largest BST Subtree πŸ”’ Medium
0334 Increasing Triplet Subsequence Medium
0335 Self Crossing Hard
0336 Palindrome Pairs Hard
0337 House Robber III C++, Python3 Medium
0338 Counting Bits Medium
0339 Nested List Weight Sum πŸ”’ Easy
0340 Longest Substring with At Most K Distinct Characters πŸ”’ Hard
0341 Flatten Nested List Iterator Medium
0342 Power of Four Easy
0343 Integer Break Medium
0344 Reverse String Easy
0345 Reverse Vowels of a String Easy
0346 Moving Average from Data Stream πŸ”’ Easy
0347 Top K Frequent Elements Medium
0348 Design Tic-Tac-Toe πŸ”’ Medium
0349 Intersection of Two Arrays Easy
0350 Intersection of Two Arrays II Easy
0351 Android Unlock Patterns πŸ”’ Medium
0352 Data Stream as Disjoint Intervals Hard
0353 Design Snake Game πŸ”’ Medium
0354 Russian Doll Envelopes Hard
0355 Design Twitter Medium
0356 Line Reflection πŸ”’ Medium
0357 Count Numbers with Unique Digits Medium
0358 Rearrange String k Distance Apart πŸ”’ Hard
0359 Logger Rate Limiter πŸ”’ Easy
0360 Sort Transformed Array πŸ”’ Medium
0361 Bomb Enemy πŸ”’ Medium
0362 Design Hit Counter πŸ”’ Medium
0363 Max Sum of Rectangle No Larger Than K Hard
0364 Nested List Weight Sum II πŸ”’ Medium
0365 Water and Jug Problem Medium
0366 Find Leaves of Binary Tree πŸ”’ Medium
0367 Valid Perfect Square Easy
0368 Largest Divisible Subset Medium
0369 Plus One Linked List πŸ”’ Medium
0370 Range Addition πŸ”’ Medium
0371 Sum of Two Integers Easy
0372 Super Pow Medium
0373 Find K Pairs with Smallest Sums Medium
0374 Guess Number Higher or Lower Easy
0375 Guess Number Higher or Lower II Medium
0376 Wiggle Subsequence Medium
0377 Combination Sum IV C++, Python3 Medium
0378 Kth Smallest Element in a Sorted Matrix C++, Python3 Medium
0379 Design Phone Directory πŸ”’ Medium
0380 Insert Delete GetRandom O(1) C++, Python3, Java Medium
0381 Insert Delete GetRandom O(1) - Duplicates allowed C++, Python3, Java Hard
0382 Linked List Random Node C++ Medium
0383 Ransom Note Easy
0384 Shuffle an Array Medium
0385 Mini Parser Medium
0386 Lexicographical Numbers Medium
0387 First Unique Character in a String Easy
0388 Longest Absolute File Path Medium
0389 Find the Difference Easy
0390 Elimination Game Medium
0391 Perfect Rectangle Hard
0392 Is Subsequence Easy
0393 UTF-8 Validation Medium
0394 Decode String Medium
0395 Longest Substring with At Least K Repeating Characters Medium
0396 Rotate Function Medium
0397 Integer Replacement Medium
0398 Random Pick Index Medium
0399 Evaluate Division Medium
0400 Nth Digit Medium
0401 Binary Watch Easy
0402 Remove K Digits Medium
0403 Frog Jump Hard
0404 Sum of Left Leaves Easy
0405 Convert a Number to Hexadecimal Easy
0406 Queue Reconstruction by Height Medium
0407 Trapping Rain Water II Hard
0408 Valid Word Abbreviation πŸ”’ Easy
0409 Longest Palindrome Easy
0410 Split Array Largest Sum Hard
0411 Minimum Unique Word Abbreviation πŸ”’ Hard
0412 Fizz Buzz Easy
0413 Arithmetic Slices Medium
0414 Third Maximum Number C++, Python3, Java Easy
0415 Add Strings Easy
0416 Partition Equal Subset Sum Medium
0417 Pacific Atlantic Water Flow Medium
0418 Sentence Screen Fitting πŸ”’ Medium
0419 Battleships in a Board Medium
0420 Strong Password Checker Hard
0421 Maximum XOR of Two Numbers in an Array Medium
0422 Valid Word Square πŸ”’ Easy
0423 Reconstruct Original Digits from English Medium
0424 Longest Repeating Character Replacement Medium
0425 Word Squares πŸ”’ Hard
0426 Convert Binary Search Tree to Sorted Doubly Linked List πŸ”’ Medium
0427 Construct Quad Tree Medium
0428 Serialize and Deserialize N-ary Tree πŸ”’ Hard
0429 N-ary Tree Level Order Traversal Medium
0430 Flatten a Multilevel Doubly Linked List C++ Medium
0431 Encode N-ary Tree to Binary Tree πŸ”’ Hard
0432 All O`one Data Structure Hard
0433 Minimum Genetic Mutation Medium
0434 Number of Segments in a String Easy
0435 Non-overlapping Intervals Medium
0436 Find Right Interval Medium
0437 Path Sum III C++, Python3 Easy
0438 Find All Anagrams in a String Medium
0439 Ternary Expression Parser πŸ”’ Medium
0440 K-th Smallest in Lexicographical Order Hard
0441 Arranging Coins Easy
0442 Find All Duplicates in an Array C++, Python3, Java Medium
0443 String Compression Easy
0444 Sequence Reconstruction πŸ”’ Medium
0445 Add Two Numbers II C++, Python3 Medium
0446 Arithmetic Slices II - Subsequence Hard
0447 Number of Boomerangs Easy
0448 Find All Numbers Disappeared in an Array C++, Python3, Java Easy
0449 Serialize and Deserialize BST Medium
0450 Delete Node in a BST Medium
0451 Sort Characters By Frequency Medium
0452 Minimum Number of Arrows to Burst Balloons Medium
0453 Minimum Moves to Equal Array Elements Easy
0454 4Sum II C++, Python3 Medium
0455 Assign Cookies Easy
0456 132 Pattern Medium
0457 Circular Array Loop C++, Python3, Java Medium
0458 Poor Pigs Hard
0459 Repeated Substring Pattern Easy
0460 LFU Cache Hard
0461 Hamming Distance C++ Easy
0462 Minimum Moves to Equal Array Elements II Medium
0463 Island Perimeter Easy
0464 Can I Win Medium
0465 Optimal Account Balancing πŸ”’ Hard
0466 Count The Repetitions Hard
0467 Unique Substrings in Wraparound String Medium
0468 Validate IP Address Medium
0469 Convex Polygon πŸ”’ Medium
0470 Implement Rand10() Using Rand7() Medium
0471 Encode String with Shortest Length πŸ”’ Hard
0472 Concatenated Words Hard
0473 Matchsticks to Square Medium
0474 Ones and Zeroes Medium
0475 Heaters Easy
0476 Number Complement C++ Easy
0477 Total Hamming Distance C++ Medium
0478 Generate Random Point in a Circle Medium
0479 Largest Palindrome Product Hard
0480 Sliding Window Median Hard
0481 Magical String Medium
0482 License Key Formatting Easy
0483 Smallest Good Base Hard
0484 Find Permutation πŸ”’ Medium
0485 Max Consecutive Ones C++, Python3, Java Easy
0486 Predict the Winner Medium
0487 Max Consecutive Ones II πŸ”’ Medium
0488 Zuma Game Hard
0489 Robot Room Cleaner πŸ”’ Hard
0490 The Maze πŸ”’ Medium
0491 Increasing Subsequences Medium
0492 Construct the Rectangle Easy
0493 Reverse Pairs Hard
0494 Target Sum Medium
0495 Teemo Attacking C++, Python3, Java Medium
0496 Next Greater Element I Easy
0497 Random Point in Non-overlapping Rectangles Medium
0498 Diagonal Traverse Medium
0499 The Maze III πŸ”’ Hard
0500 Keyboard Row Easy
0501 Find Mode in Binary Search Tree Easy
0502 IPO Hard
0503 Next Greater Element II Medium
0504 Base 7 Easy
0505 The Maze II πŸ”’ Medium
0506 Relative Ranks Easy
0507 Perfect Number Easy
0508 Most Frequent Subtree Sum Medium
0509 Fibonacci Number C++, Python3, Java Easy
0510 Inorder Successor in BST II πŸ”’ Medium
0511 Game Play Analysis I πŸ”’ Easy
0512 Game Play Analysis II πŸ”’ Easy
0513 Find Bottom Left Tree Value Medium
0514 Freedom Trail Hard
0515 Find Largest Value in Each Tree Row Medium
0516 Longest Palindromic Subsequence Medium
0517 Super Washing Machines Hard
0518 Coin Change 2 Medium
0519 Random Flip Matrix Medium
0520 Detect Capital Easy
0521 Longest Uncommon Subsequence I Easy
0522 Longest Uncommon Subsequence II Medium
0523 Continuous Subarray Sum Medium
0524 Longest Word in Dictionary through Deleting Medium
0525 Contiguous Array C++, Python3 Medium
0526 Beautiful Arrangement Medium
0527 Word Abbreviation πŸ”’ Hard
0528 Random Pick with Weight Medium
0529 Minesweeper Medium
0530 Minimum Absolute Difference in BST Easy
0531 Lonely Pixel I πŸ”’ Medium
0532 K-diff Pairs in an Array C++, Python3, Java Easy
0533 Lonely Pixel II πŸ”’ Medium
0534 Game Play Analysis III πŸ”’ Medium
0535 Encode and Decode TinyURL Medium
0536 Construct Binary Tree from String πŸ”’ Medium
0537 Complex Number Multiplication Medium
0538 Convert BST to Greater Tree Easy
0539 Minimum Time Difference Medium
0540 Single Element in a Sorted Array Medium
0541 Reverse String II Easy
0542 01 Matrix Medium
0543 Diameter of Binary Tree Easy
0544 Output Contest Matches πŸ”’ Medium
0545 Boundary of Binary Tree πŸ”’ Medium
0546 Remove Boxes Hard
0547 Friend Circles Medium
0548 Split Array with Equal Sum πŸ”’ Medium
0549 Binary Tree Longest Consecutive Sequence II πŸ”’ Medium
0550 Game Play Analysis IV πŸ”’ Medium
0551 Student Attendance Record I Easy
0552 Student Attendance Record II Hard
0553 Optimal Division Medium
0554 Brick Wall Medium
0555 Split Concatenated Strings πŸ”’ Medium
0556 Next Greater Element III Medium
0557 Reverse Words in a String III C++ Easy
0558 Quad Tree Intersection Easy
0559 Maximum Depth of N-ary Tree Easy
0560 Subarray Sum Equals K C++, Python3, Java Medium
0561 Array Partition I C++, Python3, Java Easy
0562 Longest Line of Consecutive One in Matrix πŸ”’ Medium
0563 Binary Tree Tilt Easy
0564 Find the Closest Palindrome Hard
0565 Array Nesting C++, Python3, Java Medium
0566 Reshape the Matrix C++, Python3, Java Easy
0567 Permutation in String C++, Python3 Medium
0568 Maximum Vacation Days πŸ”’ Hard
0569 Median Employee Salary πŸ”’ Hard
0570 Managers with at Least 5 Direct Reports πŸ”’ Medium
0571 Find Median Given Frequency of Numbers πŸ”’ Hard
0572 Subtree of Another Tree Easy
0573 Squirrel Simulation πŸ”’ Medium
0574 Winning Candidate πŸ”’ Medium
0575 Distribute Candies Easy
0576 Out of Boundary Paths Medium
0577 Employee Bonus πŸ”’ Easy
0578 Get Highest Answer Rate Question πŸ”’ Medium
0579 Find Cumulative Salary of an Employee πŸ”’ Hard
0580 Count Student Number in Departments πŸ”’ Medium
0581 Shortest Unsorted Continuous Subarray C++, Python3, Java Easy
0582 Kill Process πŸ”’ Medium
0583 Delete Operation for Two Strings Medium
0584 Find Customer Referee πŸ”’ Easy
0585 Investments in 2016 πŸ”’ Medium
0586 Customer Placing the Largest Number of Orders πŸ”’ Easy
0587 Erect the Fence Hard
0588 Design In-Memory File System πŸ”’ Hard
0589 N-ary Tree Preorder Traversal Easy
0590 N-ary Tree Postorder Traversal Easy
0591 Tag Validator Hard
0592 Fraction Addition and Subtraction Medium
0593 Valid Square Medium
0594 Longest Harmonious Subsequence Easy
0595 Big Countries Easy
0596 Classes More Than 5 Students Easy
0597 Friend Requests I: Overall Acceptance Rate πŸ”’ Easy
0598 Range Addition II Easy
0599 Minimum Index Sum of Two Lists C++ Easy
0600 Non-negative Integers without Consecutive Ones Hard
0601 Human Traffic of Stadium Hard
0602 Friend Requests II: Who Has the Most Friends πŸ”’ Medium
0603 Consecutive Available Seats πŸ”’ Easy
0604 Design Compressed String Iterator πŸ”’ Easy
0605 Can Place Flowers C++, Python3, Java Easy
0606 Construct String from Binary Tree Easy
0607 Sales Person πŸ”’ Easy
0608 Tree Node πŸ”’ Medium
0609 Find Duplicate File in System Medium
0610 Triangle Judgement πŸ”’ Easy
0611 Valid Triangle Number C++, Python3, Java Medium
0612 Shortest Distance in a Plane πŸ”’ Medium
0613 Shortest Distance in a Line πŸ”’ Easy
0614 Second Degree Follower πŸ”’ Medium
0615 Average Salary: Departments VS Company πŸ”’ Hard
0616 Add Bold Tag in String πŸ”’ Medium
0617 Merge Two Binary Trees Easy
0618 Students Report By Geography πŸ”’ Hard
0619 Biggest Single Number πŸ”’ Easy
0620 Not Boring Movies Easy
0621 Task Scheduler C++, Python3, Java Medium
0622 Design Circular Queue Medium
0623 Add One Row to Tree Medium
0624 Maximum Distance in Arrays πŸ”’ Easy
0625 Minimum Factorization πŸ”’ Medium
0626 Exchange Seats Medium
0627 Swap Salary Easy
0628 Maximum Product of Three Numbers C++, Python3, Java Easy
0629 K Inverse Pairs Array Hard
0630 Course Schedule III Hard
0631 Design Excel Sum Formula πŸ”’ Hard
0632 Smallest Range Covering Elements from K Lists Hard
0633 Sum of Square Numbers Easy
0634 Find the Derangement of An Array πŸ”’ Medium
0635 Design Log Storage System πŸ”’ Medium
0636 Exclusive Time of Functions Medium
0637 Average of Levels in Binary Tree Easy
0638 Shopping Offers Medium
0639 Decode Ways II C++ Hard
0640 Solve the Equation Medium
0641 Design Circular Deque Medium
0642 Design Search Autocomplete System πŸ”’ Hard
0643 Maximum Average Subarray I C++, Python3, Java Easy
0644 Maximum Average Subarray II πŸ”’ Hard
0645 Set Mismatch Easy
0646 Maximum Length of Pair Chain Medium
0647 Palindromic Substrings Medium
0648 Replace Words Medium
0649 Dota2 Senate Medium
0650 2 Keys Keyboard Medium
0651 4 Keys Keyboard πŸ”’ Medium
0652 Find Duplicate Subtrees Medium
0653 Two Sum IV - Input is a BST C++ Easy
0654 Maximum Binary Tree Medium
0655 Print Binary Tree Medium
0656 Coin Path πŸ”’ Hard
0657 Robot Return to Origin Easy
0658 Find K Closest Elements Medium
0659 Split Array into Consecutive Subsequences Medium
0660 Remove 9 πŸ”’ Hard
0661 Image Smoother C++, Python3, Java Easy
0662 Maximum Width of Binary Tree Medium
0663 Equal Tree Partition πŸ”’ Medium
0664 Strange Printer Hard
0665 Non-decreasing Array C++, Python3, Java Easy
0666 Path Sum IV πŸ”’ Medium
0667 Beautiful Arrangement II C++, Python3, Java Medium
0668 Kth Smallest Number in Multiplication Table Hard
0669 Trim a Binary Search Tree Easy
0670 Maximum Swap C++, Python3, Java Medium
0671 Second Minimum Node In a Binary Tree Easy
0672 Bulb Switcher II C++, Python3 Medium
0673 Number of Longest Increasing Subsequence Medium
0674 Longest Continuous Increasing Subsequence C++, Python3, Java Easy
0675 Cut Off Trees for Golf Event Hard
0676 Implement Magic Dictionary Medium
0677 Map Sum Pairs Medium
0678 Valid Parenthesis String Medium
0679 24 Game Hard
0680 Valid Palindrome II C++, Python3 Easy
0681 Next Closest Time πŸ”’ Medium
0682 Baseball Game Easy
0683 K Empty Slots πŸ”’ Hard
0684 Redundant Connection Medium
0685 Redundant Connection II Hard
0686 Repeated String Match Easy
0687 Longest Univalue Path Easy
0688 Knight Probability in Chessboard Medium
0689 Maximum Sum of 3 Non-Overlapping Subarrays C++, Python3, Java Hard
0690 Employee Importance Easy
0691 Stickers to Spell Word Hard
0692 Top K Frequent Words Medium
0693 Binary Number with Alternating Bits Easy
0694 Number of Distinct Islands πŸ”’ Medium
0695 Max Area of Island C++, Python3, Java Medium
0696 Count Binary Substrings Easy
0697 Degree of an Array C++, Python3, Java Easy
0698 Partition to K Equal Sum Subsets Medium
0699 Falling Squares Hard
0700 Search in a Binary Search Tree Easy
0701 Insert into a Binary Search Tree Medium
0702 Search in a Sorted Array of Unknown Size πŸ”’ Medium
0703 Kth Largest Element in a Stream Easy
0704 Binary Search Easy
0705 Design HashSet Easy
0706 Design HashMap Easy
0707 Design Linked List C++, Python3 Medium
0708 Insert into a Sorted Circular Linked List πŸ”’ Medium
0709 To Lower Case Easy
0710 Random Pick with Blacklist Hard
0711 Number of Distinct Islands II πŸ”’ Hard
0712 Minimum ASCII Delete Sum for Two Strings Medium
0713 Subarray Product Less Than K C++, Python3, Java Medium
0714 Best Time to Buy and Sell Stock with Transaction Fee C++, Python3, Java Medium
0715 Range Module Hard
0716 Max Stack πŸ”’ Easy
0717 1-bit and 2-bit Characters C++, Python3, Java Easy
0718 Maximum Length of Repeated Subarray C++, Python3, Java Medium
0719 Find K-th Smallest Pair Distance C++, Python3, Java Hard
0720 Longest Word in Dictionary Easy
0721 Accounts Merge Medium
0722 Remove Comments Medium
0723 Candy Crush πŸ”’ Medium
0724 Find Pivot Index C++, Python3, Java Easy
0725 Split Linked List in Parts C++ Medium
0726 Number of Atoms Hard
0727 Minimum Window Subsequence πŸ”’ Hard
0728 Self Dividing Numbers Easy
0729 My Calendar I C++, Python3, Java Medium
0730 Count Different Palindromic Subsequences Hard
0731 My Calendar II C++ Medium
0732 My Calendar III Hard
0733 Flood Fill Easy
0734 Sentence Similarity πŸ”’ Easy
0735 Asteroid Collision Medium
0736 Parse Lisp Expression Hard
0737 Sentence Similarity II πŸ”’ Medium
0738 Monotone Increasing Digits Medium
0739 Daily Temperatures Medium
0740 Delete and Earn Medium
0741 Cherry Pickup Hard
0742 Closest Leaf in a Binary Tree πŸ”’ Medium
0743 Network Delay Time Medium
0744 Find Smallest Letter Greater Than Target C++, Python3 Easy
0745 Prefix and Suffix Search Hard
0746 Min Cost Climbing Stairs C++, Python3, Java Easy
0747 Largest Number At Least Twice of Others C++, Python3, Java Easy
0748 Shortest Completing Word C++, Python3 Easy
0749 Contain Virus Hard
0750 Number Of Corner Rectangles πŸ”’ Medium
0751 IP to CIDR πŸ”’ Easy
0752 Open the Lock Medium
0753 Cracking the Safe Hard
0754 Reach a Number Medium
0755 Pour Water πŸ”’ Medium
0756 Pyramid Transition Matrix Medium
0757 Set Intersection Size At Least Two Hard
0758 Bold Words in String πŸ”’ Easy
0759 Employee Free Time πŸ”’ Hard
0760 Find Anagram Mappings πŸ”’ Easy
0761 Special Binary String Hard
0762 Prime Number of Set Bits in Binary Representation C++ Easy
0763 Partition Labels C++, Python3 Medium
0764 Largest Plus Sign Medium
0765 Couples Holding Hands Hard
0766 Toeplitz Matrix C++, Python3, Java Easy
0767 Reorganize String Medium
0768 Max Chunks To Make Sorted II C++, Python3, Java Hard
0769 Max Chunks To Make Sorted C++, Python3, Java Medium
0770 Basic Calculator IV Hard
0771 Jewels and Stones Easy
0772 Basic Calculator III πŸ”’ Hard
0773 Sliding Puzzle Hard
0774 Minimize Max Distance to Gas Station πŸ”’ Hard
0775 Global and Local Inversions C++, Python3, Java Medium
0776 Split BST πŸ”’ Medium
0777 Swap Adjacent in LR String Medium
0778 Swim in Rising Water Hard
0779 K-th Symbol in Grammar Medium
0780 Reaching Points Hard
0781 Rabbits in Forest Medium
0782 Transform to Chessboard Hard
0783 Minimum Distance Between BST Nodes Easy
0784 Letter Case Permutation Easy
0785 Is Graph Bipartite? Medium
0786 K-th Smallest Prime Fraction C++, Python3 Hard
0787 Cheapest Flights Within K Stops Medium
0788 Rotated Digits Easy
0789 Escape The Ghosts Medium
0790 Domino and Tromino Tiling Medium
0791 Custom Sort String Medium
0792 Number of Matching Subsequences C++, Python3, Java Medium
0793 Preimage Size of Factorial Zeroes Function Hard
0794 Valid Tic-Tac-Toe State Medium
0795 Number of Subarrays with Bounded Maximum C++, Python3, Java Medium
0796 Rotate String Easy
0797 All Paths From Source to Target Medium
0798 Smallest Rotation with Highest Score Hard
0799 Champagne Tower Medium
0800 Similar RGB Color πŸ”’ Easy
0801 Minimum Swaps To Make Sequences Increasing Medium
0802 Find Eventual Safe States Medium
0803 Bricks Falling When Hit Hard
0804 Unique Morse Code Words Easy
0805 Split Array With Same Average Hard
0806 Number of Lines To Write String Easy
0807 Max Increase to Keep City Skyline Medium
0808 Soup Servings Medium
0809 Expressive Words Medium
0810 Chalkboard XOR Game Hard
0811 Subdomain Visit Count Easy
0812 Largest Triangle Area Easy
0813 Largest Sum of Averages Medium
0814 Binary Tree Pruning Medium
0815 Bus Routes Hard
0816 Ambiguous Coordinates Medium
0817 Linked List Components C++ Medium
0818 Race Car Hard
0819 Most Common Word Easy
0820 Short Encoding of Words Medium
0821 Shortest Distance to a Character Easy
0822 Card Flipping Game Medium
0823 Binary Trees With Factors Medium
0824 Goat Latin Easy
0825 Friends Of Appropriate Ages C++, Python3, Java Medium
0826 Most Profit Assigning Work Medium
0827 Making A Large Island Hard
0828 Unique Letter String Hard
0829 Consecutive Numbers Sum Hard
0830 Positions of Large Groups C++, Python3, Java Easy
0831 Masking Personal Information Medium
0832 Flipping an Image C++, Python3, Java Easy
0833 Find And Replace in String Medium
0834 Sum of Distances in Tree Hard
0835 Image Overlap C++, Python3, Java Medium
0836 Rectangle Overlap Easy
0837 New 21 Game Medium
0838 Push Dominoes Medium
0839 Similar String Groups Hard
0840 Magic Squares In Grid C++, Python3, Java Easy
0841 Keys and Rooms Medium
0842 Split Array into Fibonacci Sequence Medium
0843 Guess the Word Hard
0844 Backspace String Compare Easy
0845 Longest Mountain in Array Medium
0846 Hand of Straights Medium
0847 Shortest Path Visiting All Nodes C++ Hard
0848 Shifting Letters Medium
0849 Maximize Distance to Closest Person C++, Python3, Java Easy
0850 Rectangle Area II Hard
0851 Loud and Rich Medium
0852 Peak Index in a Mountain Array Easy
0853 Car Fleet Medium
0854 K-Similar Strings Hard
0855 Exam Room Medium
0856 Score of Parentheses Medium
0857 Minimum Cost to Hire K Workers Hard
0858 Mirror Reflection Medium
0859 Buddy Strings Easy
0860 Lemonade Change Easy
0861 Score After Flipping Matrix Medium
0862 Shortest Subarray with Sum at Least K Hard
0863 All Nodes Distance K in Binary Tree Medium
0864 Shortest Path to Get All Keys Hard
0865 Smallest Subtree with all the Deepest Nodes Medium
0866 Prime Palindrome Medium
0867 Transpose Matrix C++, Python3, Java Easy
0868 Binary Gap Easy
0869 Reordered Power of 2 Medium
0870 Advantage Shuffle C++, Python3, Java Medium
0871 Minimum Number of Refueling Stops Hard
0872 Leaf-Similar Trees Easy
0873 Length of Longest Fibonacci Subsequence C++, Python3, Java Medium
0874 Walking Robot Simulation Easy
0875 Koko Eating Bananas C++, Python3 Medium
0876 Middle of the Linked List C++ Easy
0877 Stone Game Medium
0878 Nth Magical Number Hard
0879 Profitable Schemes Hard
0880 Decoded String at Index Medium
0881 Boats to Save People Medium
0882 Reachable Nodes In Subdivided Graph Hard
0883 Projection Area of 3D Shapes Easy
0884 Uncommon Words from Two Sentences Easy
0885 Spiral Matrix III C++, Python3 Medium
0886 Possible Bipartition Medium
0887 Super Egg Drop Hard
0888 Fair Candy Swap C++, Python3, Java Easy
0889 Construct Binary Tree from Preorder and Postorder Traversal C++, Python3 Medium
0890 Find and Replace Pattern Medium
0891 Sum of Subsequence Widths C++, Python3, Java Hard
0892 Surface Area of 3D Shapes Easy
0893 Groups of Special-Equivalent Strings Easy
0894 All Possible Full Binary Trees Medium
0895 Maximum Frequency Stack Hard
0896 Monotonic Array C++, Python3, Java Easy
0897 Increasing Order Search Tree Easy
0898 Bitwise ORs of Subarrays Medium
0899 Orderly Queue Hard
0900 RLE Iterator C++, Python3, Java Medium
0901 Online Stock Span Medium
0902 Numbers At Most N Given Digit Set Hard
0903 Valid Permutations for DI Sequence Hard
0904 Fruit Into Baskets Medium
0905 Sort Array By Parity C++, Python3, Java Easy
0906 Super Palindromes Hard
0907 Sum of Subarray Minimums C++, Python3, Java Medium
0908 Smallest Range I Easy
0909 Snakes and Ladders Medium
0910 Smallest Range II Medium
0911 Online Election Medium
0912 Sort an Array Medium
0913 Cat and Mouse Hard
0914 X of a Kind in a Deck of Cards C++, Python3, Java Easy
0915 Partition Array into Disjoint Intervals C++, Python3, Java Medium
0916 Word Subsets Medium
0917 Reverse Only Letters Easy
0918 Maximum Sum Circular Subarray C++, Python3, Java Medium
0919 Complete Binary Tree Inserter Medium
0920 Number of Music Playlists Hard
0921 Minimum Add to Make Parentheses Valid Medium
0922 Sort Array By Parity II C++, Python3, Java Easy
0923 3Sum With Multiplicity C++, Python3 Medium
0924 Minimize Malware Spread Hard
0925 Long Pressed Name Easy
0926 Flip String to Monotone Increasing C++, Python3, Java Medium
0927 Three Equal Parts Hard
0928 Minimize Malware Spread II Hard
0929 Unique Email Addresses Easy
0930 Binary Subarrays With Sum Medium
0931 Minimum Falling Path Sum Medium
0932 Beautiful Array Medium
0933 Number of Recent Calls Easy
0934 Shortest Bridge Medium
0935 Knight Dialer Medium
0936 Stamping The Sequence Hard
0937 Reorder Data in Log Files Easy
0938 Range Sum of BST Easy
0939 Minimum Area Rectangle Medium
0940 Distinct Subsequences II C++, Python3 Hard
0941 Valid Mountain Array C++, Python3, Java Easy
0942 DI String Match Easy
0943 Find the Shortest Superstring Hard
0944 Delete Columns to Make Sorted Easy
0945 Minimum Increment to Make Array Unique C++, Python3, Java Medium
0946 Validate Stack Sequences Medium
0947 Most Stones Removed with Same Row or Column Medium
0948 Bag of Tokens Medium
0949 Largest Time for Given Digits Easy
0950 Reveal Cards In Increasing Order C++, Python3, Java Medium
0951 Flip Equivalent Binary Trees Medium
0952 Largest Component Size by Common Factor Hard
0953 Verifying an Alien Dictionary Easy
0954 Array of Doubled Pairs C++, Python3, Java Medium
0955 Delete Columns to Make Sorted II Medium
0956 Tallest Billboard Hard
0957 Prison Cells After N Days Medium
0958 Check Completeness of a Binary Tree Medium
0959 Regions Cut By Slashes Medium
0960 Delete Columns to Make Sorted III Hard
0961 N-Repeated Element in Size 2N Array Easy
0962 Maximum Width Ramp C++, Python3, Java Medium
0963 Minimum Area Rectangle II Medium
0964 Least Operators to Express Number Hard
0965 Univalued Binary Tree Easy
0966 Vowel Spellchecker Medium
0967 Numbers With Same Consecutive Differences Medium
0968 Binary Tree Cameras Hard
0969 Pancake Sorting C++, Python3, Java Medium
0970 Powerful Integers Easy
0971 Flip Binary Tree To Match Preorder Traversal Medium
0972 Equal Rational Numbers Hard
0973 K Closest Points to Origin Medium
0974 Subarray Sums Divisible by K C++, Python3, Java Medium
0975 Odd Even Jump Hard
0976 Largest Perimeter Triangle Easy
0977 Squares of a Sorted Array C++, Python3, Java Easy
0978 Longest Turbulent Subarray C++, Python3, Java Medium
0979 Distribute Coins in Binary Tree Medium
0980 Unique Paths III C++ Hard
0981 Time Based Key-Value Store Medium
0982 Triples with Bitwise AND Equal To Zero Hard
0983 Minimum Cost For Tickets Medium
0984 String Without AAA or BBB Medium
0985 Sum of Even Numbers After Queries C++, Python3, Java Easy
0986 Interval List Intersections C++ Medium
0987 Vertical Order Traversal of a Binary Tree Medium
0988 Smallest String Starting From Leaf Medium
0989 Add to Array-Form of Integer C++, Python3, Java Easy
0990 Satisfiability of Equality Equations Medium
0991 Broken Calculator Medium
0992 Subarrays with K Different Integers Hard
0993 Cousins in Binary Tree Easy
0994 Rotting Oranges Easy
0995 Minimum Number of K Consecutive Bit Flips Hard
0996 Number of Squareful Arrays Hard
0997 Find the Town Judge C++, Python3, Java Easy
0998 Maximum Binary Tree II Medium
0999 Available Captures for Rook C++, Python3, Java Easy
1000 Minimum Cost to Merge Stones Hard
1001 Grid Illumination Hard
1002 Find Common Characters C++, Python3, Java Easy
1003 Check If Word Is Valid After Substitutions C++, Python3 Medium
1004 Max Consecutive Ones III C++, Python3 Medium
1005 Maximize Sum Of Array After K Negations C++, Python3 Easy
1006 Clumsy Factorial C++, Python3 Medium
1007 Minimum Domino Rotations For Equal Row C++, Python3 Medium
1008 Construct Binary Search Tree from Preorder Traversal Medium
1009 Complement of Base 10 Integer Easy
1010 Pairs of Songs With Total Durations Divisible by 60 C++, Python3, Java Easy
1011 Capacity To Ship Packages Within D Days C++, Python3, Java Medium
1012 Numbers With Repeated Digits Hard
1013 Partition Array Into Three Parts With Equal Sum C++, Python3, Java Easy
1014 Best Sightseeing Pair C++, Python3, Java Medium
1015 Smallest Integer Divisible by K C++, Python3, Java Medium
1016 Binary String With Substrings Representing 1 To N C++, Python3, Java Medium
1017 Convert to Base -2 Medium
1018 Binary Prefix Divisible By 5 C++, Python3, Java Easy
1019 Next Greater Node In Linked List C++, Python3 Medium
1020 Number of Enclaves Medium
1021 Remove Outermost Parentheses Easy
1022 Sum of Root To Leaf Binary Numbers Easy
1023 Camelcase Matching Medium
1024 Video Stitching Medium
1025 Divisor Game Easy
1026 Maximum Difference Between Node and Ancestor Medium
1027 Longest Arithmetic Sequence Medium
1028 Recover a Tree From Preorder Traversal Hard
1029 Two City Scheduling Easy
1030 Matrix Cells in Distance Order Easy
1031 Maximum Sum of Two Non-Overlapping Subarrays C++, Python3, Java Medium
1032 Stream of Characters Hard
1033 Moving Stones Until Consecutive C++, Python3, Java Easy
1034 Coloring A Border Medium
1035 Uncrossed Lines C++, Python3, Java Medium
1036 Escape a Large Maze Hard
1037 Valid Boomerang Easy
1038 Binary Search Tree to Greater Sum Tree Medium
1039 Minimum Score Triangulation of Polygon Medium
1040 Moving Stones Until Consecutive II Medium
1041 Robot Bounded In Circle Medium
1042 Flower Planting With No Adjacent Easy
1043 Partition Array for Maximum Sum C++ Medium
1044 Longest Duplicate Substring Hard
1045 Customers Who Bought All Products πŸ”’ Medium
1046 Last Stone Weight Easy
1047 Remove All Adjacent Duplicates In String Easy
1048 Longest String Chain Medium
1049 Last Stone Weight II Medium
1050 Actors and Directors Who Cooperated At Least Three Times πŸ”’ Easy
1051 Height Checker Easy
1052 Grumpy Bookstore Owner Medium
1053 Previous Permutation With One Swap Medium
1054 Distant Barcodes Medium
1055 Shortest Way to Form String πŸ”’ Medium
1056 Confusing Number πŸ”’ Easy
1057 Campus Bikes πŸ”’ Medium
1058 Minimize Rounding Error to Meet Target πŸ”’ Medium
1059 All Paths from Source Lead to Destination πŸ”’ Medium
1060 Missing Element in Sorted Array πŸ”’ Medium
1061 Lexicographically Smallest Equivalent String πŸ”’ Medium
1062 Longest Repeating Substring πŸ”’ Medium
1063 Number of Valid Subarrays πŸ”’ Hard
1064 Fixed Point πŸ”’ Easy
1065 Index Pairs of a String πŸ”’ Easy
1066 Campus Bikes II πŸ”’ Medium
1067 Digit Count in Range πŸ”’ Hard
1068 Product Sales Analysis I πŸ”’ Easy
1069 Product Sales Analysis II πŸ”’ Easy
1070 Product Sales Analysis III πŸ”’ Medium
1071 Greatest Common Divisor of Strings Easy
1072 Flip Columns For Maximum Number of Equal Rows Medium
1073 Adding Two Negabinary Numbers Medium
1074 Number of Submatrices That Sum to Target Hard
1075 Project Employees I πŸ”’ Easy
1076 Project Employees II πŸ”’ Easy
1077 Project Employees III πŸ”’ Medium
1078 Occurrences After Bigram Easy
1079 Letter Tile Possibilities Medium
1080 Insufficient Nodes in Root to Leaf Paths Medium
1081 Smallest Subsequence of Distinct Characters Medium
1082 Sales Analysis I πŸ”’ Easy
1083 Sales Analysis II πŸ”’ Easy
1084 Sales Analysis III πŸ”’ Easy
1085 Sum of Digits in the Minimum Number πŸ”’ Easy
1086 High Five πŸ”’ Easy
1087 Brace Expansion πŸ”’ Medium
1088 Confusing Number II πŸ”’ Hard
1089 Duplicate Zeros Easy
1090 Largest Values From Labels Medium
1091 Shortest Path in Binary Matrix Medium
1092 Shortest Common Supersequence Hard
1093 Statistics from a Large Sample Medium
1094 Car Pooling Medium
1095 Find in Mountain Array Hard
1096 Brace Expansion II Hard
1097 Game Play Analysis V πŸ”’ Hard
1098 Unpopular Books πŸ”’ Medium
1099 Two Sum Less Than K πŸ”’ Easy
1100 Find K-Length Substrings With No Repeated Characters πŸ”’ Medium
1101 The Earliest Moment When Everyone Become Friends πŸ”’ Medium
1102 Path With Maximum Minimum Value πŸ”’ Medium
1103 Distribute Candies to People Easy
1104 Path In Zigzag Labelled Binary Tree Medium
1105 Filling Bookcase Shelves Medium
1106 Parsing A Boolean Expression Hard
1107 New Users Daily Count πŸ”’ Medium
1108 Defanging an IP Address Easy
1109 Corporate Flight Bookings C++, Python3 Medium
1110 Delete Nodes And Return Forest Medium
1111 Maximum Nesting Depth of Two Valid Parentheses Strings Medium
1112 Highest Grade For Each Student πŸ”’ Medium
1113 Reported Posts πŸ”’ Easy
1114 Print in Order C++, Python3 Easy
1115 Print FooBar Alternately Medium
1116 Print Zero Even Odd Medium
1117 Building H2O Medium
1118 Number of Days in a Month πŸ”’ Easy
1119 Remove Vowels from a String πŸ”’ Easy
1120 Maximum Average Subtree πŸ”’ Medium
1121 Divide Array Into Increasing Sequences πŸ”’ Hard
1122 Relative Sort Array Easy
1123 Lowest Common Ancestor of Deepest Leaves Medium
1124 Longest Well-Performing Interval C++, Python3 Medium
1125 Smallest Sufficient Team Hard
1126 Active Businesses πŸ”’ Medium
1127 User Purchase Platform πŸ”’ Hard
1128 Number of Equivalent Domino Pairs Easy
1129 Shortest Path with Alternating Colors Medium
1130 Minimum Cost Tree From Leaf Values Medium
1131 Maximum of Absolute Value Expression Medium
1132 Reported Posts II πŸ”’ Medium
1133 Largest Unique Number πŸ”’ Easy
1134 Armstrong Number πŸ”’ Easy
1135 Connecting Cities With Minimum Cost πŸ”’ Medium
1136 Parallel Courses πŸ”’ Hard
1137 N-th Tribonacci Number Easy
1138 Alphabet Board Path Medium
1139 Largest 1-Bordered Square Medium
1140 Stone Game II Medium
1141 User Activity for the Past 30 Days I πŸ”’ Easy
1142 User Activity for the Past 30 Days II πŸ”’ Easy
1143 Longest Common Subsequence Medium
1144 Decrease Elements To Make Array Zigzag Medium
1145 Binary Tree Coloring Game Medium
1146 Snapshot Array Medium
1147 Longest Chunked Palindrome Decomposition Hard
1148 Article Views I πŸ”’ Easy
1149 Article Views II πŸ”’ Medium
1150 Check If a Number Is Majority Element in a Sorted Array πŸ”’ Easy
1151 Minimum Swaps to Group All 1's Together πŸ”’ Medium
1152 Analyze User Website Visit Pattern πŸ”’ Medium
1153 String Transforms Into Another String πŸ”’ Hard
1154 Day of the Year Easy
1155 Number of Dice Rolls With Target Sum Medium
1156 Swap For Longest Repeated Character Substring Medium
1157 Online Majority Element In Subarray Hard
1158 Market Analysis I πŸ”’ Medium
1159 Market Analysis II πŸ”’ Hard
1160 Find Words That Can Be Formed by Characters Easy
1161 Maximum Level Sum of a Binary Tree Medium
1162 As Far from Land as Possible Medium
1163 Last Substring in Lexicographical Order Hard
1164 Product Price at a Given Date πŸ”’ Medium
1165 Single-Row Keyboard πŸ”’ Easy
1166 Design File System πŸ”’ Medium
1167 Minimum Cost to Connect Sticks πŸ”’ Medium
1168 Optimize Water Distribution in a Village πŸ”’ Hard
1169 Invalid Transactions Medium
1170 Compare Strings by Frequency of the Smallest Character Easy
1171 Remove Zero Sum Consecutive Nodes from Linked List Medium
1172 Dinner Plate Stacks Hard
1173 Immediate Food Delivery I πŸ”’ Easy
1174 Immediate Food Delivery II πŸ”’ Medium
1175 Prime Arrangements Easy
1176 Diet Plan Performance πŸ”’ Easy
1177 Can Make Palindrome from Substring Medium
1178 Number of Valid Words for Each Puzzle Hard
1179 Reformat Department Table Easy
1180 Count Substrings with Only One Distinct Letter πŸ”’ Easy
1181 Before and After Puzzle πŸ”’ Medium
1182 Shortest Distance to Target Color πŸ”’ Medium
1183 Maximum Number of Ones πŸ”’ Hard
1184 Distance Between Bus Stops Easy
1185 Day of the Week Easy
1186 Maximum Subarray Sum with One Deletion Medium
1187 Make Array Strictly Increasing Hard
1188 Design Bounded Blocking Queue πŸ”’ Medium
1189 Maximum Number of Balloons Easy
1190 Reverse Substrings Between Each Pair of Parentheses Medium
1191 K-Concatenation Maximum Sum Medium
1192 Critical Connections in a Network Hard
1193 Monthly Transactions I πŸ”’ Medium
1194 Tournament Winners πŸ”’ Hard
1195 Fizz Buzz Multithreaded Medium
1196 How Many Apples Can You Put into the Basket πŸ”’ Easy
1197 Minimum Knight Moves πŸ”’ Medium
1198 Find Smallest Common Element in All Rows πŸ”’ Medium
1199 Minimum Time to Build Blocks πŸ”’ Hard
1200 Minimum Absolute Difference Easy
1201 Ugly Number III Medium
1202 Smallest String With Swaps Medium
1203 Sort Items by Groups Respecting Dependencies Hard
1204 Last Person to Fit in the Elevator πŸ”’ Medium
1205 Monthly Transactions II πŸ”’ Medium
1206 Design Skiplist Hard
1207 Unique Number of Occurrences Easy
1208 Get Equal Substrings Within Budget Medium
1209 Remove All Adjacent Duplicates in String II Medium
1210 Minimum Moves to Reach Target with Rotations Hard
1211 Queries Quality and Percentage πŸ”’ Easy
1212 Team Scores in Football Tournament πŸ”’ Medium
1213 Intersection of Three Sorted Arrays πŸ”’ Easy
1214 Two Sum BSTs πŸ”’ Medium
1215 Stepping Numbers πŸ”’ Medium
1216 Valid Palindrome III πŸ”’ Hard
1217 Play with Chips Easy
1218 Longest Arithmetic Subsequence of Given Difference Medium
1219 Path with Maximum Gold Medium
1220 Count Vowels Permutation Hard
1221 Split a String in Balanced Strings Easy
1222 Queens That Can Attack the King Medium
1223 Dice Roll Simulation Medium
1224 Maximum Equal Frequency Hard
1225 Report Contiguous Dates πŸ”’ Hard
1226 The Dining Philosophers Medium
1227 Airplane Seat Assignment Probability Medium
1228 Missing Number In Arithmetic Progression πŸ”’ Easy
1229 Meeting Scheduler πŸ”’ Medium
1230 Toss Strange Coins πŸ”’ Medium
1231 Divide Chocolate πŸ”’ Hard
1232 Check If It Is a Straight Line Easy
1233 Remove Sub-Folders from the Filesystem Medium
1234 Replace the Substring for Balanced String Medium
1235 Maximum Profit in Job Scheduling Hard
1236 Web Crawler πŸ”’ Medium
1237 Find Positive Integer Solution for a Given Equation Easy
1238 Circular Permutation in Binary Representation Medium
1239 Maximum Length of a Concatenated String with Unique Characters Medium
1240 Tiling a Rectangle with the Fewest Squares Hard
1241 Number of Comments per Post πŸ”’ Easy
1242 Web Crawler Multithreaded πŸ”’ Medium
1243 Array Transformation πŸ”’ Easy
1244 Design A Leaderboard πŸ”’ Medium
1245 Tree Diameter πŸ”’ Medium
1246 Palindrome Removal πŸ”’ Hard
1247 Minimum Swaps to Make Strings Equal Medium
1248 Count Number of Nice Subarrays Medium
1249 Minimum Remove to Make Valid Parentheses Medium
1250 Check If It Is a Good Array Hard
1251 Average Selling Price πŸ”’ Easy
1252 Cells with Odd Values in a Matrix C++, Python3 Easy
1253 Reconstruct a 2-Row Binary Matrix Medium
1254 Number of Closed Islands Medium
1255 Maximum Score Words Formed by Letters Hard
1256 Encode Number πŸ”’ Medium
1257 Smallest Common Region πŸ”’ Medium
1258 Synonymous Sentences πŸ”’ Medium
1259 Handshakes That Don't Cross πŸ”’ Hard
1260 Shift 2D Grid Easy
1261 Find Elements in a Contaminated Binary Tree Medium
1262 Greatest Sum Divisible by Three Medium
1263 Minimum Moves to Move a Box to Their Target Location Hard
1264 Page Recommendations πŸ”’ Medium
1265 Print Immutable Linked List in Reverse πŸ”’ Medium
1266 Minimum Time Visiting All Points Easy
1267 Count Servers that Communicate Medium
1268 Search Suggestions System Medium
1269 Number of Ways to Stay in the Same Place After Some Steps Hard
1270 All People Report to the Given Manager πŸ”’ Medium
1271 Hexspeak πŸ”’ Easy
1272 Remove Interval πŸ”’ Medium
1273 Delete Tree Nodes πŸ”’ Medium
1274 Number of Ships in a Rectangle πŸ”’ Hard
1275 Find Winner on a Tic Tac Toe Game Easy
1276 Number of Burgers with No Waste of Ingredients Medium
1277 Count Square Submatrices with All Ones Medium
1278 Palindrome Partitioning III Hard
1279 Traffic Light Controlled Intersection πŸ”’ Easy
1280 Students and Examinations πŸ”’ Easy
1281 Subtract the Product and Sum of Digits of an Integer Easy
1282 Group the People Given the Group Size They Belong To Medium
1283 Find the Smallest Divisor Given a Threshold Medium
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Hard
1285 Find the Start and End Number of Continuous Ranges πŸ”’ Medium
1286 Iterator for Combination Medium
1287 Element Appearing More Than 25% In Sorted Array Easy
1288 Remove Covered Intervals Medium
1289 Minimum Falling Path Sum II Hard
1290 Convert Binary Number in a Linked List to Integer Easy
1291 Sequential Digits Medium
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold Medium
1293 Shortest Path in a Grid with Obstacles Elimination Hard
1294 Weather Type in Each Country πŸ”’ Easy
1295 Find Numbers with Even Number of Digits Easy
1296 Divide Array in Sets of K Consecutive Numbers Medium
1297 Maximum Number of Occurrences of a Substring Medium
1298 Maximum Candies You Can Get from Boxes Hard
1299 Replace Elements with Greatest Element on Right Side Easy
1300 Sum of Mutated Array Closest to Target Medium
1301 Number of Paths with Max Score Hard
1302 Deepest Leaves Sum Medium
1303 Find the Team Size πŸ”’ Easy
1304 Find N Unique Integers Sum up to Zero Easy
1305 All Elements in Two Binary Search Trees Medium
1306 Jump Game III Medium
1307 Verbal Arithmetic Puzzle Hard
1308 Running Total for Different Genders πŸ”’ Medium
1309 Decrypt String from Alphabet to Integer Mapping Easy
1310 XOR Queries of a Subarray C++, Python3, Java Medium
1311 Get Watched Videos by Your Friends Medium
1312 Minimum Insertion Steps to Make a String Palindrome Hard
1313 Decompress Run-Length Encoded List Easy
1314 Matrix Block Sum Medium
1315 Sum of Nodes with Even-Valued Grandparent Medium
1316 Distinct Echo Substrings Hard
1317 Convert Integer to the Sum of Two No-Zero Integers Easy
1318 Minimum Flips to Make a OR b Equal to c Medium
1319 Number of Operations to Make Network Connected Medium
1320 Minimum Distance to Type a Word Using Two Fingers Hard
1321 Restaurant Growth πŸ”’ Medium
1322 Ads Performance πŸ”’ Easy
1323 Maximum 69 Number Easy
1324 Print Words Vertically Medium
1325 Delete Leaves With a Given Value Medium
1326 Minimum Number of Taps to Open to Water a Garden Hard

Releases

No releases published

Packages

No packages published

Languages