Coder Social home page Coder Social logo

sm2774us / leetcode-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lmmsoft/leetcode

0.0 0.0 0.0 3.09 MB

My solutions of LeetCode problems written in C++, Java, JavaScript, Python and Kotlin

License: GNU General Public License v2.0

C++ 15.19% Java 3.14% Kotlin 0.15% Python 81.20% JavaScript 0.33%

leetcode-1's Introduction

LeetCode

Put my solutions in C++, Java, JavaScript, Python and Kotlin

  1. Use Python to solve problems for the 1st time
  2. Use JavaScript to solve problems for the 2nd time
  3. Use other language to solve problems for the 3rd time

Statistic

Until 2020-01-29 02:55:40, I have solved 209 / 1335 problems while 285 are still locked.

  1. Python: 190
  2. C++: 13
  3. Java: 12
  4. JavaScript: 3
  5. Kotlin: 1

Note: : locked means you need to buy a book from LeetCode


LeetCode Solution Table

ID Title Difficulty Solution JavaScript Python C++ Java Other
0001 Two Sum Easy Solution JavaScript Python C++ Java Kotlin
0002 Add Two Numbers Medium Solution Python
0003 Longest Substring Without Repeating Characters Medium Solution Python
0004 Median of Two Sorted Arrays Hard
0005 Longest Palindromic Substring Medium
0006 ZigZag Conversion Medium
0007 Reverse Integer Easy C++
0008 String to Integer (atoi) Medium
0009 Palindrome Number Easy Solution Python
0010 Regular Expression Matching Hard
0011 Container With Most Water Medium Solution Python
0012 Integer to Roman Medium
0013 Roman to Integer Easy Solution Python
0014 Longest Common Prefix Easy Solution Python
0015 3Sum Medium Solution Java
0016 3Sum Closest Medium
0017 Letter Combinations of a Phone Number Medium
0018 4Sum Medium Java
0019 Remove Nth Node From End of List Medium
0020 Valid Parentheses Easy Solution Python
0021 Merge Two Sorted Lists Easy Java
0022 Generate Parentheses Medium
0023 Merge k Sorted Lists Hard
0024 Swap Nodes in Pairs Medium
0025 Reverse Nodes in k-Group Hard
0026 Remove Duplicates from Sorted Array Easy Solution Python Java
0027 Remove Element Easy Solution Python
0028 Implement strStr() Easy Solution Python
0029 Divide Two Integers Medium
0030 Substring with Concatenation of All Words Hard
0031 Next Permutation Medium
0032 Longest Valid Parentheses Hard
0033 Search in Rotated Sorted Array Medium Solution Python
0034 Find First and Last Position of Element in Sorted Array Medium Solution Python
0035 Search Insert Position Easy Solution Python
0036 Valid Sudoku Medium
0037 Sudoku Solver Hard
0038 Count and Say Easy Solution Python
0039 Combination Sum Medium Solution Python
0040 Combination Sum II Medium Solution Python
0041 First Missing Positive Hard Solution Python
0042 Trapping Rain Water Hard
0043 Multiply Strings Medium
0044 Wildcard Matching Hard
0045 Jump Game II Hard
0046 Permutations Medium
0047 Permutations II Medium
0048 Rotate Image Medium Solution Python
0049 Group Anagrams Medium
0050 Pow(x, n) Medium
0051 N-Queens Hard
0052 N-Queens II Hard
0053 Maximum Subarray Easy Solution Python
0054 Spiral Matrix Medium
0055 Jump Game Medium
0056 Merge Intervals Medium
0057 Insert Interval Hard
0058 Length of Last Word Easy Solution Python
0059 Spiral Matrix II Medium
0060 Permutation Sequence Medium
0061 Rotate List Medium
0062 Unique Paths Medium
0063 Unique Paths II Medium
0064 Minimum Path Sum Medium
0065 Valid Number Hard
0066 Plus One Easy Solution Python
0067 Add Binary Easy Solution Python
0068 Text Justification Hard
0069 Sqrt(x) Easy Solution Python
0070 Climbing Stairs Easy
0071 Simplify Path Medium
0072 Edit Distance Hard
0073 Set Matrix Zeroes Medium
0074 Search a 2D Matrix Medium Solution Python
0075 Sort Colors Medium
0076 Minimum Window Substring Hard
0077 Combinations Medium
0078 Subsets Medium
0079 Word Search Medium
0080 Remove Duplicates from Sorted Array II Medium Solution Java
0081 Search in Rotated Sorted Array II Medium
0082 Remove Duplicates from Sorted List II Medium Solution Java
0083 Remove Duplicates from Sorted List Easy Solution Java
0084 Largest Rectangle in Histogram Hard
0085 Maximal Rectangle Hard
0086 Partition List Medium
0087 Scramble String Hard
0088 Merge Sorted Array Easy Solution Python
0089 Gray Code Medium
0090 Subsets II Medium
0091 Decode Ways Medium
0092 Reverse Linked List II Medium
0093 Restore IP Addresses Medium
0094 Binary Tree Inorder Traversal Medium C++
0095 Unique Binary Search Trees II Medium
0096 Unique Binary Search Trees Medium C++
0097 Interleaving String Hard
0098 Validate Binary Search Tree Medium
0099 Recover Binary Search Tree Hard
0100 Same Tree Easy C++
0101 Symmetric Tree Easy
0102 Binary Tree Level Order Traversal Medium
0103 Binary Tree Zigzag Level Order Traversal Medium
0104 Maximum Depth of Binary Tree Easy C++
0105 Construct Binary Tree from Preorder and Inorder Traversal Medium
0106 Construct Binary Tree from Inorder and Postorder Traversal Medium
0107 Binary Tree Level Order Traversal II Easy
0108 Convert Sorted Array to Binary Search Tree Easy
0109 Convert Sorted List to Binary Search Tree Medium
0110 Balanced Binary Tree Easy
0111 Minimum Depth of Binary Tree Easy
0112 Path Sum Easy
0113 Path Sum II Medium
0114 Flatten Binary Tree to Linked List Medium
0115 Distinct Subsequences Hard
0116 Populating Next Right Pointers in Each Node Medium C++
0117 Populating Next Right Pointers in Each Node II Medium
0118 Pascal's Triangle Easy Solution Python
0119 Pascal's Triangle II Easy Solution Python
0120 Triangle Medium
0121 Best Time to Buy and Sell Stock Easy C++
0122 Best Time to Buy and Sell Stock II Easy C++
0123 Best Time to Buy and Sell Stock III Hard
0124 Binary Tree Maximum Path Sum Hard
0125 Valid Palindrome Easy
0126 Word Ladder II Hard
0127 Word Ladder Medium
0128 Longest Consecutive Sequence Hard Solution Python
0129 Sum Root to Leaf Numbers Medium
0130 Surrounded Regions Medium
0131 Palindrome Partitioning Medium
0132 Palindrome Partitioning II Hard
0133 Clone Graph Medium
0134 Gas Station Medium
0135 Candy Hard
0136 Single Number Easy C++
0137 Single Number II Medium
0138 Copy List with Random Pointer Medium
0139 Word Break Medium
0140 Word Break II Hard
0141 Linked List Cycle Easy C++
0142 Linked List Cycle II Medium
0143 Reorder List Medium
0144 Binary Tree Preorder Traversal Medium C++
0145 Binary Tree Postorder Traversal Hard
0146 LRU Cache Medium
0147 Insertion Sort List Medium
0148 Sort List Medium
0149 Max Points on a Line Hard
0150 Evaluate Reverse Polish Notation Medium
0151 Reverse Words in a String Medium
0152 Maximum Product Subarray Medium
0153 Find Minimum in Rotated Sorted Array Medium
0154 Find Minimum in Rotated Sorted Array II Hard
0155 Min Stack 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 Easy
0161 One Edit Distance ๐Ÿ”’ Medium
0162 Find Peak Element Medium
0163 Missing Ranges ๐Ÿ”’ Medium
0164 Maximum Gap Hard
0165 Compare Version Numbers Medium
0166 Fraction to Recurring Decimal Medium
0167 Two Sum II - Input array is sorted Easy Solution Python
0168 Excel Sheet Column Title Easy
0169 Majority Element Easy Solution Python
0170 Two Sum III - Data structure design ๐Ÿ”’ Easy
0171 Excel Sheet Column Number Easy
0172 Factorial Trailing Zeroes Easy
0173 Binary Search Tree Iterator Medium
0174 Dungeon Game Hard
0175 Combine Two Tables Easy
0176 Second Highest Salary Easy
0177 Nth Highest Salary Medium
0178 Rank Scores Medium
0179 Largest Number 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 Medium
0188 Best Time to Buy and Sell Stock IV Hard
0189 Rotate Array Easy Solution Python
0190 Reverse Bits Easy Solution Python
0191 Number of 1 Bits 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 Easy Solution Python
0199 Binary Tree Right Side View Medium
0200 Number of Islands Medium
0201 Bitwise AND of Numbers Range Medium
0202 Happy Number Easy
0203 Remove Linked List Elements Easy
0204 Count Primes Easy
0205 Isomorphic Strings Easy
0206 Reverse Linked List Easy
0207 Course Schedule Medium
0208 Implement Trie (Prefix Tree) Medium
0209 Minimum Size Subarray Sum Medium
0210 Course Schedule II Medium
0211 Add and Search Word - Data structure design Medium
0212 Word Search II Hard
0213 House Robber II Medium
0214 Shortest Palindrome Hard
0215 Kth Largest Element in an Array Medium
0216 Combination Sum III Medium Solution Python
0217 Contains Duplicate Easy
0218 The Skyline Problem Hard
0219 Contains Duplicate II Easy
0220 Contains Duplicate III Medium
0221 Maximal Square Medium
0222 Count Complete Tree Nodes Medium
0223 Rectangle Area Medium
0224 Basic Calculator Hard
0225 Implement Stack using Queues Easy
0226 Invert Binary Tree Easy
0227 Basic Calculator II Medium
0228 Summary Ranges Medium
0229 Majority Element II Medium
0230 Kth Smallest Element in a BST Medium
0231 Power of Two Easy
0232 Implement Queue using Stacks Easy
0233 Number of Digit One Hard
0234 Palindrome Linked List Easy
0235 Lowest Common Ancestor of a Binary Search Tree Easy
0236 Lowest Common Ancestor of a Binary Tree Medium
0237 Delete Node in a Linked List Easy Solution Java
0238 Product of Array Except Self Medium
0239 Sliding Window Maximum Hard
0240 Search a 2D Matrix II Medium
0241 Different Ways to Add Parentheses Medium
0242 Valid Anagram 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 Medium
0261 Graph Valid Tree ๐Ÿ”’ Medium
0262 Trips and Users Hard
0263 Ugly Number Easy
0264 Ugly Number II Medium
0265 Paint House II ๐Ÿ”’ Hard
0266 Palindrome Permutation ๐Ÿ”’ Easy
0267 Palindrome Permutation II ๐Ÿ”’ Medium
0268 Missing Number Easy Solution Python
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 Medium
0275 H-Index II Medium
0276 Paint Fence ๐Ÿ”’ Easy
0277 Find the Celebrity ๐Ÿ”’ Medium
0278 First Bad Version Easy
0279 Perfect Squares Medium
0280 Wiggle Sort ๐Ÿ”’ Medium
0281 Zigzag Iterator ๐Ÿ”’ Medium
0282 Expression Add Operators Hard
0283 Move Zeroes Easy
0284 Peeking Iterator Medium
0285 Inorder Successor in BST ๐Ÿ”’ Medium
0286 Walls and Gates ๐Ÿ”’ Medium
0287 Find the Duplicate Number Medium
0288 Unique Word Abbreviation ๐Ÿ”’ Medium
0289 Game of Life 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 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 Medium
0310 Minimum Height Trees Medium
0311 Sparse Matrix Multiplication ๐Ÿ”’ Medium
0312 Burst Balloons Hard
0313 Super Ugly Number 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 Medium
0320 Generalized Abbreviation ๐Ÿ”’ Medium
0321 Create Maximum Number Hard
0322 Coin Change 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 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 Solution Python
0333 Largest BST Subtree ๐Ÿ”’ Medium
0334 Increasing Triplet Subsequence Medium
0335 Self Crossing Hard
0336 Palindrome Pairs Hard
0337 House Robber III 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 Medium Solution Python
0378 Kth Smallest Element in a Sorted Matrix Medium
0379 Design Phone Directory ๐Ÿ”’ Medium
0380 Insert Delete GetRandom O(1) Medium
0381 Insert Delete GetRandom O(1) - Duplicates allowed Hard
0382 Linked List Random Node Medium
0383 Ransom Note Easy
0384 Shuffle an Array Medium
0385 Mini Parser Medium
0386 Lexicographical Numbers Medium Solution Python
0387 First Unique Character in a String Easy
0388 Longest Absolute File Path Medium
0389 Find the Difference Easy Solution Python
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 Easy
0415 Add Strings Easy
0416 Partition Equal Subset Sum Medium Solution Python
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 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 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 Medium
0443 String Compression Easy
0444 Sequence Reconstruction ๐Ÿ”’ Medium
0445 Add Two Numbers II Medium
0446 Arithmetic Slices II - Subsequence Hard
0447 Number of Boomerangs Easy
0448 Find All Numbers Disappeared in an Array 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 Medium Java
0455 Assign Cookies Easy
0456 132 Pattern Medium
0457 Circular Array Loop Medium
0458 Poor Pigs Hard
0459 Repeated Substring Pattern Easy
0460 LFU Cache Hard
0461 Hamming Distance 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 Easy
0477 Total Hamming Distance 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 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 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 Easy Solution Python
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 Solution Python
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 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 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 Solution Python
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 Solution Python
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 Easy
0558 Quad Tree Intersection Easy
0559 Maximum Depth of N-ary Tree Easy
0560 Subarray Sum Equals K Medium
0561 Array Partition I Easy
0562 Longest Line of Consecutive One in Matrix ๐Ÿ”’ Medium
0563 Binary Tree Tilt Easy
0564 Find the Closest Palindrome Hard
0565 Array Nesting Medium
0566 Reshape the Matrix Easy
0567 Permutation in String 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 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 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 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 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 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 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 Hard
0640 Solve the Equation Medium
0641 Design Circular Deque Medium
0642 Design Search Autocomplete System ๐Ÿ”’ Hard
0643 Maximum Average Subarray I 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 Easy Solution Python
0654 Maximum Binary Tree Medium
0655 Print Binary Tree Medium
0656 Coin Path ๐Ÿ”’ Hard
0657 Robot Return to Origin Easy Solution Python
0658 Find K Closest Elements Medium
0659 Split Array into Consecutive Subsequences Medium
0660 Remove 9 ๐Ÿ”’ Hard
0661 Image Smoother Easy
0662 Maximum Width of Binary Tree Medium
0663 Equal Tree Partition ๐Ÿ”’ Medium
0664 Strange Printer Hard
0665 Non-decreasing Array Easy
0666 Path Sum IV ๐Ÿ”’ Medium
0667 Beautiful Arrangement II Medium
0668 Kth Smallest Number in Multiplication Table Hard
0669 Trim a Binary Search Tree Easy
0670 Maximum Swap Medium
0671 Second Minimum Node In a Binary Tree Easy
0672 Bulb Switcher II Medium
0673 Number of Longest Increasing Subsequence Medium
0674 Longest Continuous Increasing Subsequence 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 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 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 Medium
0696 Count Binary Substrings Easy
0697 Degree of an Array 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 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 Medium
0714 Best Time to Buy and Sell Stock with Transaction Fee Medium
0715 Range Module Hard
0716 Max Stack ๐Ÿ”’ Easy
0717 1-bit and 2-bit Characters Easy
0718 Maximum Length of Repeated Subarray Medium
0719 Find K-th Smallest Pair Distance Hard
0720 Longest Word in Dictionary Easy
0721 Accounts Merge Medium
0722 Remove Comments Medium
0723 Candy Crush ๐Ÿ”’ Medium
0724 Find Pivot Index Easy
0725 Split Linked List in Parts Medium
0726 Number of Atoms Hard
0727 Minimum Window Subsequence ๐Ÿ”’ Hard
0728 Self Dividing Numbers Easy
0729 My Calendar I Medium
0730 Count Different Palindromic Subsequences Hard
0731 My Calendar II 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 Easy
0745 Prefix and Suffix Search Hard
0746 Min Cost Climbing Stairs Easy Solution Python
0747 Largest Number At Least Twice of Others Easy
0748 Shortest Completing Word 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 Easy
0763 Partition Labels Medium
0764 Largest Plus Sign Medium
0765 Couples Holding Hands Hard
0766 Toeplitz Matrix Easy
0767 Reorganize String Medium
0768 Max Chunks To Make Sorted II Hard
0769 Max Chunks To Make Sorted Medium
0770 Basic Calculator IV Hard
0771 Jewels and Stones Easy Solution Python
0772 Basic Calculator III ๐Ÿ”’ Hard
0773 Sliding Puzzle Hard
0774 Minimize Max Distance to Gas Station ๐Ÿ”’ Hard
0775 Global and Local Inversions 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 Hard
0787 Cheapest Flights Within K Stops Medium
0788 Rotated Digits Easy Solution Python
0789 Escape The Ghosts Medium
0790 Domino and Tromino Tiling Medium
0791 Custom Sort String Medium
0792 Number of Matching Subsequences Medium
0793 Preimage Size of Factorial Zeroes Function Hard
0794 Valid Tic-Tac-Toe State Medium
0795 Number of Subarrays with Bounded Maximum 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 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 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 Easy
0831 Masking Personal Information Medium
0832 Flipping an Image Easy
0833 Find And Replace in String Medium
0834 Sum of Distances in Tree Hard
0835 Image Overlap Medium
0836 Rectangle Overlap Easy
0837 New 21 Game Medium
0838 Push Dominoes Medium
0839 Similar String Groups Hard
0840 Magic Squares In Grid 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 Hard
0848 Shifting Letters Medium
0849 Maximize Distance to Closest Person Easy
0850 Rectangle Area II Hard
0851 Loud and Rich Medium
0852 Peak Index in a Mountain Array Easy Solution Python
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 Easy
0868 Binary Gap Easy
0869 Reordered Power of 2 Medium
0870 Advantage Shuffle Medium
0871 Minimum Number of Refueling Stops Hard
0872 Leaf-Similar Trees Easy
0873 Length of Longest Fibonacci Subsequence Medium
0874 Walking Robot Simulation Easy
0875 Koko Eating Bananas Medium
0876 Middle of the Linked List 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 Medium
0886 Possible Bipartition Medium
0887 Super Egg Drop Hard
0888 Fair Candy Swap Easy
0889 Construct Binary Tree from Preorder and Postorder Traversal Medium
0890 Find and Replace Pattern Medium
0891 Sum of Subsequence Widths 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 Easy
0897 Increasing Order Search Tree Easy
0898 Bitwise ORs of Subarrays Medium
0899 Orderly Queue Hard
0900 RLE Iterator 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 Easy Solution Python
0906 Super Palindromes Hard
0907 Sum of Subarray Minimums 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 Easy
0915 Partition Array into Disjoint Intervals Medium
0916 Word Subsets Medium
0917 Reverse Only Letters Easy
0918 Maximum Sum Circular Subarray 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 Easy Solution Python
0923 3Sum With Multiplicity Medium
0924 Minimize Malware Spread Hard
0925 Long Pressed Name Easy
0926 Flip String to Monotone Increasing 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 Hard
0941 Valid Mountain Array 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 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 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 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 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 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 Medium
0975 Odd Even Jump Hard
0976 Largest Perimeter Triangle Easy
0977 Squares of a Sorted Array Easy Solution Python
0978 Longest Turbulent Subarray Medium Solution Python
0979 Distribute Coins in Binary Tree Medium Solution Python
0980 Unique Paths III Hard
0981 Time Based Key-Value Store Medium Solution Python
0982 Triples with Bitwise AND Equal To Zero Hard
0983 Minimum Cost For Tickets Medium
0984 String Without AAA or BBB Medium Solution Python
0985 Sum of Even Numbers After Queries Easy Solution Python
0986 Interval List Intersections Medium
0987 Vertical Order Traversal of a Binary Tree Medium Solution Python
0988 Smallest String Starting From Leaf Medium Solution Python
0989 Add to Array-Form of Integer 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 Easy
0998 Maximum Binary Tree II Medium
0999 Available Captures for Rook Easy
1000 Minimum Cost to Merge Stones Hard
1001 Grid Illumination Hard
1002 Find Common Characters Easy Solution Python
1003 Check If Word Is Valid After Substitutions Medium Solution Python
1004 Max Consecutive Ones III Medium Solution Python
1005 Maximize Sum Of Array After K Negations Easy Solution Python
1006 Clumsy Factorial Medium Solution Python
1007 Minimum Domino Rotations For Equal Row Medium Solution Python
1008 Construct Binary Search Tree from Preorder Traversal Medium Solution Python
1009 Complement of Base 10 Integer Easy
1010 Pairs of Songs With Total Durations Divisible by 60 Easy
1011 Capacity To Ship Packages Within D Days Medium
1012 Numbers With Repeated Digits Hard
1013 Partition Array Into Three Parts With Equal Sum Easy
1014 Best Sightseeing Pair Medium
1015 Smallest Integer Divisible by K Medium
1016 Binary String With Substrings Representing 1 To N Medium
1017 Convert to Base -2 Medium Solution Python
1018 Binary Prefix Divisible By 5 Easy Solution Python
1019 Next Greater Node In Linked List Medium Solution Python
1020 Number of Enclaves Medium Solution Python
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 Solution Python
1026 Maximum Difference Between Node and Ancestor Medium Solution Python
1027 Longest Arithmetic Sequence Medium Solution Python
1028 Recover a Tree From Preorder Traversal Hard
1029 Two City Scheduling Easy Python
1030 Matrix Cells in Distance Order Easy Python
1031 Maximum Sum of Two Non-Overlapping Subarrays Medium Python
1032 Stream of Characters Hard
1033 Moving Stones Until Consecutive Easy
1034 Coloring A Border Medium
1035 Uncrossed Lines 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 Medium
1044 Longest Duplicate Substring Hard
1045 Customers Who Bought All Products ๐Ÿ”’ Medium
1046 Last Stone Weight Easy Solution Python
1047 Remove All Adjacent Duplicates In String Easy Solution Python
1048 Longest String Chain Medium Solution Python
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 Solution Python
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 Solution Python
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 Solution Python
1104 Path In Zigzag Labelled Binary Tree Medium Solution Python
1105 Filling Bookcase Shelves Medium
1106 Parsing A Boolean Expression Hard
1107 New Users Daily Count ๐Ÿ”’ Medium
1108 Defanging an IP Address Easy Solution Python
1109 Corporate Flight Bookings Medium Solution Python Java
1110 Delete Nodes And Return Forest Medium Solution Python
1111 Maximum Nesting Depth of Two Valid Parentheses Strings Medium Solution Python
1112 Highest Grade For Each Student ๐Ÿ”’ Medium
1113 Reported Posts ๐Ÿ”’ Easy
1114 Print in Order Easy Solution Python
1115 Print FooBar Alternately Medium
1116 Print Zero Even Odd Medium
1117 Building H2O Medium
1118 Number of Days in a Month ๐Ÿ”’ Easy Solution Python
1119 Remove Vowels from a String ๐Ÿ”’ Easy Solution Python
1120 Maximum Average Subtree ๐Ÿ”’ Medium Solution Python
1121 Divide Array Into Increasing Sequences ๐Ÿ”’ Hard Solution Python
1122 Relative Sort Array Easy Solution Python
1123 Lowest Common Ancestor of Deepest Leaves Medium Solution Python
1124 Longest Well-Performing Interval Medium Solution Python C++
1125 Smallest Sufficient Team Hard Solution Python
1126 Active Businesses ๐Ÿ”’ Medium
1127 User Purchase Platform ๐Ÿ”’ Hard
1128 Number of Equivalent Domino Pairs Easy Solution Python
1129 Shortest Path with Alternating Colors Medium Solution Python
1130 Minimum Cost Tree From Leaf Values Medium Solution Python
1131 Maximum of Absolute Value Expression Medium
1132 Reported Posts II ๐Ÿ”’ Medium
1133 Largest Unique Number ๐Ÿ”’ Easy Solution Python
1134 Armstrong Number ๐Ÿ”’ Easy Solution Python
1135 Connecting Cities With Minimum Cost ๐Ÿ”’ Medium Solution Python
1136 Parallel Courses ๐Ÿ”’ Hard Solution Python
1137 N-th Tribonacci Number Easy Solution Python
1138 Alphabet Board Path Medium Solution Python
1139 Largest 1-Bordered Square Medium Solution Python
1140 Stone Game II Medium Solution Python
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 Solution Python
1145 Binary Tree Coloring Game Medium Solution Python
1146 Snapshot Array Medium Solution Python
1147 Longest Chunked Palindrome Decomposition Hard Solution Python
1148 Article Views I ๐Ÿ”’ Easy
1149 Article Views II ๐Ÿ”’ Medium
1150 Check If a Number Is Majority Element in a Sorted Array ๐Ÿ”’ Easy Solution Python
1151 Minimum Swaps to Group All 1's Together ๐Ÿ”’ Medium Solution Python
1152 Analyze User Website Visit Pattern ๐Ÿ”’ Medium Solution Python
1153 String Transforms Into Another String ๐Ÿ”’ Hard Solution Python
1154 Day of the Year Easy Solution Python Java
1155 Number of Dice Rolls With Target Sum Medium Solution Python
1156 Swap For Longest Repeated Character Substring Medium Solution Python
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 Solution Python
1161 Maximum Level Sum of a Binary Tree Medium Solution Python
1162 As Far from Land as Possible Medium Solution Python
1163 Last Substring in Lexicographical Order Hard Solution Python
1164 Product Price at a Given Date ๐Ÿ”’ Medium
1165 Single-Row Keyboard ๐Ÿ”’ Easy Solution Python
1166 Design File System ๐Ÿ”’ Medium Solution Python
1167 Minimum Cost to Connect Sticks ๐Ÿ”’ Medium Solution Python
1168 Optimize Water Distribution in a Village ๐Ÿ”’ Hard Solution Python
1169 Invalid Transactions Medium Solution Python
1170 Compare Strings by Frequency of the Smallest Character Easy Solution Python
1171 Remove Zero Sum Consecutive Nodes from Linked List Medium Solution Python
1172 Dinner Plate Stacks Hard Solution Python
1173 Immediate Food Delivery I ๐Ÿ”’ Easy
1174 Immediate Food Delivery II ๐Ÿ”’ Medium
1175 Prime Arrangements Easy Solution Python
1176 Diet Plan Performance ๐Ÿ”’ Easy Solution Python
1177 Can Make Palindrome from Substring Medium Solution Python
1178 Number of Valid Words for Each Puzzle Hard Solution Python
1179 Reformat Department Table Easy
1180 Count Substrings with Only One Distinct Letter ๐Ÿ”’ Easy Solution Python
1181 Before and After Puzzle ๐Ÿ”’ Medium Solution Python
1182 Shortest Distance to Target Color ๐Ÿ”’ Medium Solution Python
1183 Maximum Number of Ones ๐Ÿ”’ Hard Solution Python
1184 Distance Between Bus Stops Easy Solution Python
1185 Day of the Week Easy Solution Python
1186 Maximum Subarray Sum with One Deletion Medium Solution Python
1187 Make Array Strictly Increasing Hard Solution Python
1188 Design Bounded Blocking Queue ๐Ÿ”’ Medium
1189 Maximum Number of Balloons Easy Solution Python
1190 Reverse Substrings Between Each Pair of Parentheses Medium Solution Python
1191 K-Concatenation Maximum Sum Medium Solution Python
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 Solution Python
1197 Minimum Knight Moves ๐Ÿ”’ Medium Solution Python
1198 Find Smallest Common Element in All Rows ๐Ÿ”’ Medium Solution Python
1199 Minimum Time to Build Blocks ๐Ÿ”’ Hard
1200 Minimum Absolute Difference Easy Solution Python
1201 Ugly Number III Medium Solution Python
1202 Smallest String With Swaps Medium Solution Python
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 Solution Python
1244 Design A Leaderboard ๐Ÿ”’ Medium Solution Python
1245 Tree Diameter ๐Ÿ”’ Medium
1246 Palindrome Removal ๐Ÿ”’ Hard
1247 Minimum Swaps to Make Strings Equal Medium Solution Python
1248 Count Number of Nice Subarrays Medium Solution Python
1249 Minimum Remove to Make Valid Parentheses Medium Solution Python
1250 Check If It Is a Good Array Hard
1251 Average Selling Price ๐Ÿ”’ Easy
1252 Cells with Odd Values in a Matrix Easy Python
1253 Reconstruct a 2-Row Binary Matrix Medium Python
1254 Number of Closed Islands Medium Python
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 Solution Python
1272 Remove Interval ๐Ÿ”’ Medium Solution Python
1273 Delete Tree Nodes ๐Ÿ”’ Medium Solution Python
1274 Number of Ships in a Rectangle ๐Ÿ”’ Hard
1275 Find Winner on a Tic Tac Toe Game Easy Solution Python
1276 Number of Burgers with No Waste of Ingredients Medium Solution Python
1277 Count Square Submatrices with All Ones Medium Solution JavaScript Python
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 Solution Python
1282 Group the People Given the Group Size They Belong To Medium Solution Python
1283 Find the Smallest Divisor Given a Threshold Medium Solution Python
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 Python
1287 Element Appearing More Than 25% In Sorted Array Easy Python
1288 Remove Covered Intervals Medium Python
1289 Minimum Falling Path Sum II Hard Python
1290 Convert Binary Number in a Linked List to Integer Easy Python
1291 Sequential Digits Medium Python
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold Medium JavaScript Python
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 Solution Python
1296 Divide Array in Sets of K Consecutive Numbers Medium Solution Python
1297 Maximum Number of Occurrences of a Substring Medium Solution Python
1298 Maximum Candies You Can Get from Boxes Hard Solution Python
1299 Replace Elements with Greatest Element on Right Side Easy Solution Python
1300 Sum of Mutated Array Closest to Target Medium Solution Python
1301 Number of Paths with Max Score Hard Python
1302 Deepest Leaves Sum Medium Solution Python
1303 Find the Team Size ๐Ÿ”’ Easy
1304 Find N Unique Integers Sum up to Zero Easy Python
1305 All Elements in Two Binary Search Trees Medium Python
1306 Jump Game III Medium Python
1307 Verbal Arithmetic Puzzle Hard Python
1308 Running Total for Different Genders ๐Ÿ”’ Medium
1309 Decrypt String from Alphabet to Integer Mapping Easy
1310 XOR Queries of a Subarray 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
1327 List the Products Ordered in a Period ๐Ÿ”’ Easy
1328 Break a Palindrome Medium
1329 Sort the Matrix Diagonally Medium
1330 Reverse Subarray To Maximize Array Value Hard
1331 Rank Transform of an Array Easy Python
1332 Remove Palindromic Subsequences Easy
1333 Filter Restaurants by Vegan-Friendly, Price and Distance Medium
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Medium
1335 Minimum Difficulty of a Job Schedule Hard

leetcode-1's People

Contributors

lmmsoft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.