kanglicheng / binary-search-solutions

solutions to coding problems at https://binarysearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binary Search Solutions

Generate the table using python3:

pip install -r requirements.txt
python generate_readme.py
python update_readme.py
  • 🟒: Easy
  • 🟠: Medium
  • πŸ”΄: Hard
  • πŸ”΅: Harder
Id Question Difficulty Solution Notes
βœ… 1 Sum of Two Numbers 🟒 cpp
βœ… 2 Balanced Brackets 🟠 py
3 Regular Expression Matching πŸ”΄
βœ… 4 Hoppable 🟠 cpp
βœ… 6 Palindromic Integer 🟒 cpp
7 Special Product List 🟠
βœ… 8 First Missing Positive 🟠 cpp
βœ… 9 Decode Message 🟠 py
βœ… 10 Largest Sum of Non Adjacent Numbers 🟠 cpp DP
12 A Flight of Stairs 🟠
βœ… 13 Univalue Tree Count 🟠 cpp
βœ… 14 Longest Sublist with K Distinct Numbers πŸ”΄ py
βœ… 15 Collecting Coins 🟠 cpp
16 Sliding Window Max πŸ”΄
20 Painting Houses πŸ”΄
βœ… 23 3 6 9 🟒 cpp
βœ… 26 Labyrinthian Possibilities 🟠 cpp
βœ… 31 Run Length Encoding 🟒 cpp
βœ… 45 Strictly Increasing or Strictly Decreasing 🟒 cpp
βœ… 46 Largest Number By Two Times 🟒 cpp
βœ… 47 Subsequence Strings 🟠 cpp
βœ… 49 Add Binary Numbers 🟠 cpp, py
βœ… 50 Number of Islands 🟠 cpp
βœ… 56 Generate Primes 🟒 py Sieve of Eratosthenes
βœ… 57 Unique Occurrences 🟠 py
βœ… 58 Longest Palindromic Subsequence πŸ”΄ cpp, py
βœ… 59 Longest Common Subsequence 🟠 cpp Dynamic Programming
βœ… 60 A Unique String 🟒 py
βœ… 62 Compress String 🟒 cpp
βœ… 63 Rotation of Another String 🟒 cpp
64 One Edit Distance 🟠
65 First Missing Positive Sequel 🟠
βœ… 67 Find the Largest Number in a Rotated List 🟠 cpp
βœ… 69 Insertion Index in Sorted List 🟠 java
βœ… 71 Packing Boxes 🟠 cpp, py
βœ… 72 Balanced Brackets Sequel 🟠 py
βœ… 73 Unidirectional Word Search 🟒 py
75 Longest Arithmetic Subsequence πŸ”΄
βœ… 76 Length of a Linked List 🟒 cpp
βœ… 77 Kth Last Node of a Linked List 🟠 cpp
βœ… 78 Reverse a Linked List 🟠 cpp
βœ… 79 Palindrome Linked List 🟠 cpp
βœ… 80 Rotate List Left by K 🟒 cpp
81 Largest Rectangle Submatrix πŸ”΄
βœ… 82 Bipartite Graph 🟠 py
βœ… 83 Shortest Bridge πŸ”΄ py
85 Largest K Divisible Subsequence πŸ”΅
βœ… 88 Sinking Islands πŸ”΄ cpp
89 Farthest Point From Water πŸ”΄
βœ… 90 Longest Increasing Subsequence 🟠 cpp
91 Split String Into Palindromes πŸ”΄
βœ… 92 Rotate Linked List by K 🟠 cpp
βœ… 93 Create Largest Number From a List πŸ”΄ py
107 Zipped String πŸ”΄
108 Currency Arbitrage πŸ”΅
βœ… 110 Nth Fibonacci Number 🟒 cpp
βœ… 111 Wolf of Wall Street 🟒 java
βœ… 112 High Frequency 🟒 py
113 Buy and Sell K Stocks πŸ”΄
βœ… 115 Square of a List 🟒 py
βœ… 116 Recurring Character 🟒 cpp
117 The Accountant 🟠
βœ… 118 Tree Sum 🟠 cpp
βœ… 120 Leftmost Deepest Tree Node 🟠 cpp
βœ… 124 Sum of the Deepest Nodes 🟠 cpp
βœ… 125 Twin Trees 🟠 cpp
127 Set Bits 🟠
βœ… 129 Longest Anagram Subsequence 🟠 cpp, py
βœ… 130 Binary Search Tree Validation 🟠 cpp
βœ… 131 Level Order Traversal 🟠 cpp
βœ… 132 Kth Smallest in a Binary Search Tree 🟠 cpp
βœ… 133 Invert Tree 🟠 cpp
135 Sudoku Solver 🟠
βœ… 136 Search in a Binary Search Tree 🟠 cpp
βœ… 137 Making Change 🟠 cpp
βœ… 138 Merging Binary Trees 🟠 cpp
βœ… 139 Anagram Partitioning 🟠 py
βœ… 140 Zero Matrix 🟠 cpp
βœ… 141 Merging Two Sorted Lists 🟒 cpp
βœ… 142 Tree Pruning 🟠 cpp
βœ… 143 Central Linked List 🟠 cpp
βœ… 145 Largest Root to Leaf Sum 🟠 cpp
βœ… 146 Most Frequent Subtree Sum 🟠 py
βœ… 147 Spiral Matrix 🟠 cpp
βœ… 148 Sum of the Digits 🟒 cpp
149 Break String Into Words πŸ”΄
150 Connected Cities 🟠
βœ… 151 Sort by Frequency and Value 🟠 py
βœ… 152 Longest Tree Sum Path From Root to Leaf 🟠 cpp
βœ… 154 Rain Catcher 🟠 py
βœ… 155 Inorder Traversal 🟠 py
βœ… 156 Detecting an Odd Length Cycle πŸ”΄ py
βœ… 158 A Strictly Increasing Linked List 🟒 cpp
163 Perfect Squares 🟠
βœ… 164 Repeated Deletion 🟠 py
βœ… 166 Interleaved String 🟒 cpp
βœ… 167 Check Palindrome 🟒 cpp
βœ… 168 Anagram Checks 🟒 cpp, py
βœ… 169 List Partitioning 🟠 cpp
βœ… 171 Max Product of Two Numbers 🟒 cpp
βœ… 172 Removing Parentheses 🟠 cpp
βœ… 174 Longest Consecutive Duplicate String 🟒 cpp
βœ… 175 Next Integer Permutation πŸ”΄ cpp
176 Unique Subsequences Equal to Target πŸ”΄
βœ… 177 Remove Duplicate Numbers 🟠 py
178 Postfix Notation Evaluation 🟠
βœ… 180 Check Power of Two 🟒 cpp Bit Trick
βœ… 181 Number of Bits 🟒 cpp
βœ… 182 List Min Replacement 🟒 cpp
183 Rocketship Rescue 🟠
184 Short Circuit πŸ”΅
βœ… 186 Longest Zero Sublist Sum πŸ”΄ py
βœ… 187 Edit Distance 🟠 cpp, py
188 Merge New Interval πŸ”΄
βœ… 189 Longest Palindromic Substring 🟠 java
190 H Index 🟠
191 Space Battle 🟠
193 Longest Distinct Sublist 🟠
βœ… 194 Longest Consecutive Run of 1s in Binary 🟠 java Bit Trick
196 Sudoku Validator 🟠
βœ… 197 Repeated Addition 🟒 cpp
199 A Maniacal Walk πŸ”΄
βœ… 200 Longest Increasing Path πŸ”΄ py
βœ… 201 Pascal's Triangle 🟒 cpp
βœ… 202 Number of Palindromic Substrings 🟠 cpp
βœ… 203 Detect the Only Duplicate in a List 🟒 cpp
βœ… 204 Swap Consecutive Index Pairs 🟒 cpp
βœ… 205 Paint Bucket 🟠 py
206 Largest Binary Search Subtree in Nodes πŸ”΄
βœ… 208 Longest Consecutive Sequence 🟠 py
209 Tromino Theory πŸ”΄
βœ… 210 Height Balanced Tree 🟠 cpp
βœ… 213 Collatz Sequence 🟒 cpp
βœ… 214 Count BST Nodes in a Range 🟠 cpp
βœ… 215 Transpose of a Matrix 🟒 py
216 Maximal Sublist Product 🟠
βœ… 218 Integer to Base 3 🟒 cpp
βœ… 219 Line Segment 🟠 py
βœ… 220 Consecutive Duplicates 🟒 cpp
βœ… 221 Flight Itinerary 🟠 py
βœ… 222 Toeplitz Matrix 🟒 cpp
βœ… 223 Interleaved Linked List 🟠 cpp
βœ… 224 Sort a Linked List 🟠 cpp, py
βœ… 225 Sort by Permutation 🟠 cpp
βœ… 226 String Expansion πŸ”΄ py
βœ… 227 Unix Path Resolution 🟒 cpp
βœ… 228 Linked List to Integer 🟒 cpp
230 S Expression Evaluation πŸ”΄
βœ… 231 No New Friends 🟠 py
βœ… 232 Friend Groups 🟠 py
βœ… 235 Hamming Distance 🟒 cpp
βœ… 237 Rotate by 90 Degrees Counter Clockwise 🟠 py
βœ… 238 Sorted Elements 🟒 py
βœ… 239 Pairwise Linked List Swap 🟠 cpp, java
βœ… 240 Merging K Sorted Lists 🟠 java
βœ… 241 Column Sort 🟒 py
βœ… 242 Diagonal Sort 🟠 py
βœ… 244 Largest Sublist Sum 🟠 cpp
βœ… 245 Matrix Search 🟠 cpp, py
248 Foo Bar Qaz Qux πŸ”΄
βœ… 249 Palindromic Anagram 🟠 py
250 Long Distance 🟠
251 Sort String by Flipping 🟠
βœ… 252 Kth Smallest Element 🟠 cpp Quickselect
βœ… 253 Matrix Search Sequel 🟠 cpp
254 Minimum Deletions From the Ends for Equilibrium 🟠
255 Subsequence Sum 🟠
256 Longest Contiguously Strictly Increasing Sublist After Deletion 🟠
258 N Queens Puzzle πŸ”΄
259 Number of Unique Binary Search Trees 🟠
βœ… 261 Reverse Words 🟒 cpp, py
262 Reverse Words Sequel 🟠
βœ… 265 Clock Angle 🟠 java
βœ… 266 Median Minimization 🟒 cpp
βœ… 269 Left Side View of a Tree 🟠 cpp
βœ… 271 Reverse Linked List Groups 🟠 cpp
βœ… 272 Stack Sequence 🟠 py
βœ… 273 Minimum Bracket Addition 🟒 cpp
βœ… 275 Conway's Game of Life 🟠 py
βœ… 276 Complete Binary Tree 🟠 cpp
βœ… 278 Sum Tree 🟠 cpp
βœ… 279 Interval Overlaps 🟠 py
280 Candy Race πŸ”΄
281 Median of Two Sorted Lists πŸ”΄
βœ… 282 Condo Developers 🟠 py
283 Ascending Cards 🟠
284 Flight Itinerary Sequel 🟠
βœ… 285 Odd Number of Digits 🟒 py
βœ… 286 Delete Even Leaves 🟠 cpp
288 Minimum Digit Delete πŸ”΄
289 Make Lists Same with Sublist Sum Operations 🟠
βœ… 290 Swap Characters to Equalize Strings 🟒 py
βœ… 294 Longest Common Substring 🟠 cpp
βœ… 298 Text Editor 🟒 cpp
299 Seat Arrangement 🟒
βœ… 300 Convert to Full Binary Tree 🟠 cpp
301 Swapping Socks πŸ”΄
βœ… 302 Dividing Station πŸ”΄ py
βœ… 303 Level Order Alternating 🟠 py
304 Hanging Banners πŸ”΄
βœ… 306 Longest Common Subsequence of Three Strings πŸ”΄ cpp
βœ… 307 IP Address Combinations πŸ”΄ py
βœ… 308 Linked List Deletion 🟒 cpp
309 Edges that Disconnect the Graph πŸ”΅
310 Direct Closure 🟠
312 Distributed Systems πŸ”΄
314 Longest 1s After One Swap 🟠
315 Maximum Removal Subsequence String πŸ”΄
βœ… 316 Shortest Sublist to Sort 🟒 cpp
317 Collision Detection πŸ”΄
βœ… 318 Longest Tree Path 🟠 cpp
319 K Partitionable List πŸ”΄
βœ… 320 Phone Number Combinations 🟠 py
βœ… 321 Task Hare 🟒 cpp
βœ… 322 Happy Numbers 🟒 py
324 Making Change Sequel 🟠
325 Maximum Non Adjacent Tree Sum 🟠
326 24 πŸ”΄
βœ… 327 Add One to List 🟒 cpp
328 Moo πŸ”΄
βœ… 329 Roman Numeral to Integer 🟠 py
330 Remove Interval Overlaps 🟠
βœ… 332 Reverse Graph 🟠 py
βœ… 333 Pythagorean Triplets 🟒 cpp
βœ… 334 List to Binary Search Tree 🟠 py
βœ… 335 Movie Theatres 🟠 py
βœ… 337 Dice Throw 🟠 py
βœ… 338 Valid N Queens 🟠 py
βœ… 339 Prime Factorization 🟒 cpp
340 Mindboggling πŸ”΄
βœ… 341 Binary Tree to Linked List 🟠 cpp
342 Justify Text πŸ”΄
βœ… 344 Roomba 🟒 py
βœ… 345 Largest Tree Sum Path 🟠 cpp
βœ… 346 Ancient Astronaut Theory 🟒 py
347 Spiky Plants πŸ”΄
348 Binary Tree Width 🟠
βœ… 349 Uber Pool 🟠 py
350 Fair Pay 🟠
βœ… 351 Minimum Window Substring πŸ”΄ py
353 Triangle Triplets 🟠
βœ… 354 Add Linked Lists 🟠 cpp
βœ… 356 Remove Duplicates in Linked List 🟠 cpp
357 Course Scheduling 🟠
βœ… 358 Greatest Common Divisor 🟒 cpp
βœ… 359 Sibling Tree Value 🟠 cpp
βœ… 360 Lowest Common Ancestor 🟠 cpp
βœ… 361 Top View of a Tree πŸ”΄ py
βœ… 362 The Auditor 🟠 cpp
βœ… 363 Linked List to Binary Search Tree 🟠 py
βœ… 364 Univalue Tree 🟠 cpp
βœ… 366 Cutting Binary Search Tree 🟠 cpp
368 Number of Hops 🟠
βœ… 369 Sum of Right Leaves 🟠 cpp
370 Wildfire 🟠
βœ… 372 Common Words 🟒 py
373 Dictionary Nomad πŸ”΄
374 Unique Characters of Every Substring πŸ”΄
375 Diverse Words πŸ”΄
376 Best Interval to Remove πŸ”΅
377 Sublist Sum 🟠
βœ… 381 Sorting Mail 🟠 py
382 All Sublists Sum 🟠
βœ… 384 Look and Say 🟠 py
385 Minimum Difference 🟠
βœ… 387 Buying Cars 🟒 cpp
βœ… 388 Mixed Sorting 🟒 cpp, py
389 Squares in a Grid πŸ”΅
βœ… 390 Base 3 to Integer 🟒 cpp
391 Lego Towers 🟠
392 Roomba Sequel πŸ”΄
βœ… 393 3 and 7 🟒 cpp
βœ… 395 A Number and Its Triple 🟒 cpp
βœ… 396 Equivalent Value and Frequency 🟒 py
βœ… 397 Elephant Tree 🟠 cpp
398 Escape Maze 🟠
400 Subsequence Picking πŸ”΅
405 Target Number with Operations Sequel 🟠
βœ… 406 String Isomorphism 🟒 py
βœ… 409 Sum of Three Numbers 🟠 java
βœ… 410 City Blocks 🟒 py
βœ… 412 Tree Traversal 🟠 py
415 8 Puzzle πŸ”΄
βœ… 416 Palindromic Tree 🟠 py
417 Parity Jump πŸ”΄
βœ… 418 Inverse Factorial 🟒 cpp
βœ… 419 Remove One Letter 🟒 cpp
421 Minimum Spanning Tree πŸ”΅
422 Smallest Difference πŸ”΄
βœ… 423 Big Numbers 🟒 cpp
βœ… 424 Target Number with Operations 🟒 cpp
βœ… 425 Latin Square 🟒 py
βœ… 426 Symmetric Binary Tree 🟠 cpp
βœ… 428 Partition Tree 🟠 py
βœ… 429 Vertical Cipher 🟒 py
βœ… 430 Leaderboard 🟒 py
βœ… 431 Word Formation 🟒 py
433 Minimum Parsing Tree πŸ”΅
435 Longest Rotated Palindromic Substring πŸ”΄
βœ… 436 Level Order Binary Tree to Linked List 🟠 cpp
βœ… 437 Longest Alliteration 🟒 cpp
βœ… 440 Index Into an Infinite String 🟒 cpp
βœ… 442 Bomber Man 🟠 py
βœ… 448 Linked List to ZigZag Tree Path 🟠 cpp
449 Distinct Palindromes 🟠
450 Number of Swaps to Sort 🟠
453 Word Formation Sequel 🟠
βœ… 456 Narcissistic Number 🟒 cpp
βœ… 459 Maximum Number by Inserting Five 🟒 py
460 As Before Bs 🟠
βœ… 461 Equal Piles 🟠 py
462 Bounce 🟠
βœ… 463 Run Length Decoding 🟒 py
464 Symmetric Blocks 🟠
465 A Student πŸ”΄
467 A* Student πŸ”΅
βœ… 471 K and K 🟒 cpp
472 Adjacent Swaps to Group Ones πŸ”΄
βœ… 473 Unique Ab Strings 🟒 cpp
βœ… 474 Largest Anagram Group 🟠 py
477 Trimmed Palindromes 🟠
βœ… 478 Interval Duration 🟠 py
479 Longest Alternating Subsequence πŸ”΄
480 Bus Fare 🟠
βœ… 481 Tree From PreInorder Traversals 🟠 py
βœ… 482 Detect Voter Fraud 🟒 java
βœ… 483 Leaves in Same Level 🟠 cpp
βœ… 484 123 Number Flip 🟒 cpp
485 Task Schedule 🟠
βœ… 486 Largest and Smallest Difference 🟠 py
βœ… 487 Swappable Trees 🟠 cpp
βœ… 488 Longest Interval 🟠 py LineSweep
βœ… 489 Minimum Cost Sort 🟒 py
βœ… 491 Leaf Equivalent Trees 🟠 py
492 Max Character Distinct Words 🟠
βœ… 494 Longest Even Value Path 🟠 cpp
βœ… 495 Rectangular Overlap 🟒 py
496 Longest Even Sum Path πŸ”΄
βœ… 498 Robinhood 🟒 java
βœ… 499 Linked List Folding 🟠 cpp
500 The Meeting Place 🟠
βœ… 501 FizzBuzz 🟒 cpp
503 Weekly Contest πŸ”΅
505 The Meeting Place Sequel πŸ”΄
βœ… 506 One Integer 🟠 py
βœ… 507 Largest Square Submatrix πŸ”΄ py
509 Points on a Line πŸ”΄
βœ… 510 Contiguous Intervals 🟠 py
511 Ways to Sum Consecutive Numbers to N 🟠
βœ… 513 Count Submatrices That Sum Target πŸ”΄ py
βœ… 514 Linked List Partitioning 🟠 cpp
βœ… 517 Number of Sublists With Sum of Target 🟠 py
βœ… 518 Steady Speed 🟠 py
519 Next Binary Permutation 🟠
520 Dominos πŸ”΄
βœ… 521 Range Update 🟠 py
522 Light Bulb Toggling 🟠
524 Cut Matrix πŸ”΄
525 Knight Remains 🟠
528 Ghost πŸ”΄
βœ… 529 Shortest String 🟒 cpp
βœ… 530 Odd Palindrome 🟠 cpp
βœ… 533 Line of People 🟒 cpp
βœ… 536 K Unique String 🟠 py
537 Trailing Zeros πŸ”΄
538 Bunnyhopping πŸ”΄
βœ… 539 Sum of First N Odd Integers 🟒 cpp
540 Copy Paste 🟠
541 Sum of Three Numbers Sequel 🟠
542 Factory Trail 🟠
544 Multiple Parentheses πŸ”΄
545 Boxes All the Way Down πŸ”΄
βœ… 547 Repeating String 🟒 py
βœ… 548 Consecutively Descending Integers 🟒 py
551 Overchoice 🟠
βœ… 552 Reflected Binary Code 🟠 cpp
βœ… 555 Sum of Four Numbers 🟠 py
556 String Multiplication 🟠
557 K Largest Pairs πŸ”΅
βœ… 558 N Lexicographic Integers 🟠 py
559 Minimum Set of Pairs 🟠
βœ… 560 Selling Products 🟠 py
βœ… 563 Factorial Sum 🟠 py
βœ… 564 N Rooks 🟒 java
βœ… 565 Rookie Mistake 🟒 cpp
566 Coprime Suspects 🟠
567 Country Roads πŸ”΄
568 Outstanding Move πŸ”΄
569 Outstanding Move Sequel πŸ”΅
570 Split Product 🟠
571 String Construction 🟠
βœ… 573 Parentheses Grouping 🟒 py
βœ… 574 Majority Vote 🟠 cpp
575 Class Scheduling 🟠
βœ… 576 Linked List Delete Last Occurrence of Value 🟠 cpp
βœ… 577 Remove Last Duplicate Entries 🟒 py
βœ… 581 Fractional Knapsack 🟠 py
582 DDoS Protection πŸ”΄
583 Multi Knapsack πŸ”΄
βœ… 584 0 1 Knapsack 🟠 py
βœ… 585 Poly Knapsack 🟠 cpp, py
βœ… 586 Shipping and Receiving 🟠 py
βœ… 587 Linked List Intersection 🟠 cpp
βœ… 588 Linked List Union 🟠 cpp
591 Make Palindrome by Adding a Suffix πŸ”΄
βœ… 592 Make a Palindrome by Inserting Characters 🟠 cpp
595 Decimal Number πŸ”΄
βœ… 596 Island Shape Perimeter 🟠 py
598 Smallest Sublist Sum at Least Target πŸ”΄
βœ… 599 Guess the Root 🟒 cpp
βœ… 600 Interval Union 🟠 py
βœ… 601 Interval Intersection 🟒 java
602 Non Decreasing Digits 🟠
604 Maximum Consecutive Difference πŸ”΄
605 Anagram Difference πŸ”΄
βœ… 606 Cell Fusion 🟒 py
βœ… 607 Longest Common Prefix 🟒 cpp
βœ… 608 Anagram Substrings 🟠 py
βœ… 609 String Addition 🟒 cpp
βœ… 610 List Equality with Increments 🟒 cpp
βœ… 611 Submajority Vote 🟠 cpp
βœ… 614 Count Exact Sum πŸ”΄ py
βœ… 616 Parse Boolean Expression 🟠 py
βœ… 618 Largest Gap 🟒 py
619 Embolden 🟠
620 Subsequence Widths πŸ”΄
621 Longest Path in a Graph πŸ”΄
βœ… 622 2048 🟠 py
βœ… 625 Bubble Swap 🟠 py
626 Minimum Distance of Two Words in a Sentence 🟒
633 Next Closest Odd Digit Number πŸ”΄
634 Weird Clock 🟠
βœ… 635 Upside Down Numbers 🟠 py
636 Rotation Groups 🟒
βœ… 637 Reverse an Inner Linked List 🟠 cpp
βœ… 638 Longest Substring with 2 Distinct Characters 🟠 py
βœ… 639 Back to Front Linked List 🟠 py
βœ… 641 Sentence Reversal 🟠 cpp
642 Flipped Matrix 🟠
βœ… 644 Inorder Successor 🟠 cpp
645 Bear of Wall Street 🟠
646 Interval Carving 🟠
647 Last to Toggle Wins πŸ”΄
648 Pattern Matching πŸ”΄
649 Rain Catcher Sequel πŸ”΅
βœ… 650 Subtree 🟠 cpp
βœ… 651 Lone Integer 🟠 cpp Bit Trick
652 Parse Ternary Expression 🟠
βœ… 654 Number of Unique Character Substrings 🟒 py
655 Digital Lake πŸ”΅
656 Split List Into Strictly Increasing Chunks πŸ”΄
657 Bomber Man Sequel 🟠
658 Binary Tree Longest Consecutive Path πŸ”΄
659 Number of Quadruplets That Sum Target 🟠
660 Distance Pair 🟠
661 Fleet of Palindromes 🟠
663 Broker of Wall Street 🟠
664 Small Large Medium πŸ”΄
βœ… 665 Arithmetic Sequences 🟠 py
666 Arithmetic Subsequences 🟠
667 List Consecutive Split 🟠
βœ… 668 Rod Cutting 🟠 py
βœ… 669 Count of Sublists with Same First and Last Values 🟠 cpp
βœ… 670 Lexicographic Swap 🟒 py
671 Calculator πŸ”΄
βœ… 672 Length of Longest Balanced Subsequence 🟠 cpp
βœ… 673 Longest Bitonic Subsequence 🟠 cpp
βœ… 674 K Prefix 🟒 cpp
675 K Compare 🟠
676 Popularity πŸ”΄
677 K Subsequence πŸ”΅
βœ… 679 Increasing Digits 🟠 cpp
βœ… 681 Wolves of Wall Street 🟒 java
682 Bull of Wall Street πŸ”΄
683 Palindrome Count 🟒
687 K Maximum Sums 🟠
688 Minimum Adjacent Swaps to Palindrome πŸ”΄
690 Communication Towers 🟠
βœ… 691 Skydivers 🟠 cpp
696 Planar Edges πŸ”΄
697 Largest Equivalent Set of Pairs πŸ”΄
698 Largest K Sublist Sum 🟠
βœ… 699 Skip Tasks to Minimize Work 🟠 py
βœ… 700 Shortest Common Supersequence πŸ”΄ cpp
701 Making Change Trequel 🟠
702 Job Scheduling to Maximize Profit πŸ”΄
βœ… 703 Largest Square Matrix with Same Value πŸ”΄ py
706 Circular Longest Increasing Subsequence πŸ”΄
βœ… 707 Count Square Submatrices 🟠 py
709 Stepping Numbers 🟠
710 K Maximum Non Overlapping Sums πŸ”΄
βœ… 714 Ugly Number 🟒 cpp
715 Ugly Number Sequel 🟠
718 Divisible Numbers πŸ”΄
719 Minimum Sum Subsequence 🟠
βœ… 720 Longest Sign Alternating Subsequence 🟠 py
721 ABC Subsequences 🟠
βœ… 722 K Distinct Window 🟠 py
βœ… 723 Social Distancing 🟒 py
βœ… 724 Optimal Decrement 🟠 py
725 Particular Paths πŸ”΄
726 Inverted Inversions πŸ”΅
βœ… 728 Maximum Sum Removing K Numbers From Ends 🟠 cpp
βœ… 735 Substringify 🟒 cpp
βœ… 736 Second Place 🟠 cpp
737 Odd Longest Increasing Subsequence πŸ”΄
738 Special Nodes πŸ”΅
βœ… 741 Count Next Element 🟒 py
βœ… 746 Only Child 🟠 cpp
βœ… 747 Changing Directions 🟒 cpp
βœ… 748 Verify Max Heap 🟒 py
βœ… 756 Tree Coloring 🟠 py
βœ… 759 Stacks 🟠 py
βœ… 763 Reverse Sublists to Convert to Target 🟒 py
βœ… 767 Just Average 🟒 cpp
772 Bit Sum 🟠
773 Social Distancing 2 πŸ”΄
774 Low Score πŸ”΅
779 Chain of Blocks 🟠
780 Equalize List 🟠
781 Min Max Sets 🟠
βœ… 783 Minimum String 🟒 cpp
784 One Interval 🟠
785 Chosen N πŸ”΄
786 Strings Down Under πŸ”΅
βœ… 792 K Longest Show Durations 🟒 py
793 Forest Detection 🟠
795 Group Points 🟠
βœ… 797 Binary Matrix Leftmost One 🟠 py
βœ… 798 Unique Fractions 🟒 py
799 Scrum Journeyman 🟠
802 Color Map 🟠
803 Maximal Expression πŸ”΄
804 Minimal Submatrices πŸ”΅
βœ… 805 Intervals Intersecting at Point 🟒 py
806 Non Consecutive String 🟠
βœ… 809 Revolving Door 🟒 py
817 Bus Stop 🟠
818 Longest Sublist with Value Range Condition 🟠
βœ… 819 Most Frequent Number in Intervals 🟒 py LineSweep
βœ… 820 Beer Bottles 🟒 cpp
821 Cut Palindrome 🟠
822 K Lexicographically Smallest Subsequence πŸ”΄
823 Connect Forest πŸ”΅
βœ… 830 Large to Small Sort 🟒 cpp
834 Coincidence Search 🟒
βœ… 835 Set Split 🟠 py
836 Group the Ones 🟠
839 Excel Spreadsheet 🟠
βœ… 841 Unique Integers in Sorted List 🟒 cpp
βœ… 848 Grammar Rules 🟠 py
849 Increasing Subsequences of Size K πŸ”΄
850 Take All πŸ”΅
864 Every Pair of Absolute Difference 🟠
βœ… 865 Furthest From Origin 🟒 cpp
866 Flipped Matrix Prequel 🟒
βœ… 868 Diagonal Tree Traversal 🟠 cpp
βœ… 870 Flip to Zeros 🟒 cpp
871 Latin Square Solver 🟠
βœ… 874 Area Under Histogram πŸ”΄ py Increasing Stack
875 Hill Maker 🟠
876 Hop Cost πŸ”΄
βœ… 879 Split List 🟒 cpp
881 Making Pairwise Adjacent Sums Small 🟠
882 Wildfire Sequel πŸ”΄
883 Equation Typo πŸ”΅
βœ… 886 Contained Interval 🟒 py
891 Valid State of List 🟠
893 Lossy Run Length Encoding 🟠
894 Turn Into Non Increasing List πŸ”΄
βœ… 896 Palindrome Splitting 🟠 py
897 ZigZag Path 🟠
βœ… 898 Lexicographically Bigger String 🟠 py
βœ… 899 Fibonacci Subset Sum 🟠 py
901 Resum to Target List 🟠
βœ… 904 Making List Values Equal 🟒 cpp
905 Finding Binary Search in a String 🟒
906 Paying Workers With Coins 🟠
βœ… 917 Wallstreet Bets 🟠 py
βœ… 918 Partition String πŸ”΄ py
919 Word Concatenation 🟠
920 K Divisible Sublist 🟠
921 List Splitting to Consecutive Subsequences πŸ”΄
βœ… 925 Distinct Islands πŸ”΄ cpp
926 Largest Difference Between Node and a Descendant 🟠
928 Hop Cost Sequel 🟠
929 Tree Sum Count 🟠
βœ… 930 Kth Missing Number 🟠 cpp
932 Binary Tree Nodes Around Radius 🟠
933 Repeated String Replacement to Target πŸ”΄
935 Maximum of the Smallest Chunk πŸ”΄
βœ… 936 Multiset Sum 🟠 cpp
937 Collecting Coins Trequel πŸ”΄
938 Knight Moves to Target Coordinate 🟠
939 Subsequence Match Target 🟠
βœ… 940 Maximum Sum Rectangle with Condition πŸ”΄ py
βœ… 942 Minimum Number of Contiguous K Flips πŸ”΄ py
βœ… 943 Longest Interval Containing One Number 🟒 cpp
944 K Stack Pops 🟠
948 Column Flips to Target 🟠
βœ… 950 Surrounded Islands 🟠 cpp
βœ… 951 Max Sum of Two Non Overlapping Lists 🟠 cpp
952 Two Non Overlapping Lists With Target Sums 🟠
953 Shortest Path by Removing K Walls πŸ”΄
βœ… 954 Equal Partitions 🟠 py
βœ… 956 Largest Sum of 3 Non Overlapping Sublists πŸ”΄ py
βœ… 957 Sum of Digit Paths in a Tree 🟠 cpp
958 Longest Sublist with Absolute Difference Condition 🟠
βœ… 959 Largest Island Area 🟠 cpp
960 Smallest Window Subsequence πŸ”΄
961 Parallel Coin Collection πŸ”΄
964 Candy Race Sequel πŸ”΄
965 Probability Game πŸ”΄
βœ… 966 Group Integers 🟒 py
βœ… 967 Repeated K Length Substrings 🟒 py
969 Frogger πŸ”΄
970 Candy Race Trequel πŸ”΄
βœ… 975 Linked List Jumps 🟒 cpp
976 Separate Predators 🟠
977 Minimum Adjacent Elements πŸ”΄
βœ… 980 Unlock Rooms 🟠 py
βœ… 981 Binary Search Tree Typo πŸ”΄ py
982 Matrix Nearest Zero 🟠
984 Minimum Number of Transfers to Settle Debts πŸ”΄
985 Largest Island After Land Cell Addition πŸ”΄
986 Image Intersection 🟠
βœ… 987 Repeated Deletion Sequel 🟠 py
988 Longest Substring with Character Count of at Least K 🟠
989 Minimum Tree From Leaves 🟠
990 Distinct Coin Sums 🟠
991 Edit Distance Sequel πŸ”΄
992 Maximum Points From Removals πŸ”΅
993 Collecting Coins Sequel πŸ”΄
996 A Flight of Stairs Sequel 🟠
βœ… 1001 Sum of Three Numbers Less than Target 🟠 java
1002 Inverted Subtree 🟒
1004 Concatenated Sums 🟠
1005 Blocks to Spell Word 🟠
1007 Delete From the Ends and Reinsert to Target 🟠
1008 Package Matching πŸ”΄
βœ… 1015 Candy Race with Different Types 🟠 py
1016 Number of K Divisible Sublists 🟠
βœ… 1018 Number of K Length Sublists with Average at Least Target 🟠 py
1019 Partition List to Pairs that Are Divisible by K 🟠
1020 Minimum Number of Operations to Make Lists Increasing 🟠
1021 Costly Flight of Stairs 🟠
1022 Largest Average of Sublist with Length at Least K πŸ”΄
1024 Maximum Adjacent Absolute Value Sum After One Reversal πŸ”΄
1025 Append Numbers to List to Create Range πŸ”΄
1026 Column Flips to Maximum Number of Equal Rows 🟠
1027 Partition Lists to Make Sorted List 🟠
1028 Recursive Parentheses Reversal πŸ”΄
βœ… 1029 Longest Strictly Increasing Then Decreasing Sublist 🟠 py
βœ… 1030 Create Palindrome After Deleting at Most K Characters πŸ”΄ cpp
1031 Minimum Size of Two Non Overlapping Intervals 🟒
1032 Gene Mutation Groups 🟠
1033 Remove Sublist to Reach Equilibrium 🟠
1034 Minimum Number of Flips to Have Alternating Values πŸ”΄
1037 Prison Cells 🟠
1042 Longest Inequality Alternating Sublist 🟠
1043 Shortest Distance Between Two Points πŸ”΅
1044 Maximum Additive Score by Removing Numbers 🟠
1045 Arrange Symbols to Create Sum 🟠
βœ… 1046 Missing Numbers From 1 to N 🟒 cpp
1047 Recover Order on Queue of People 🟠
1048 Minimum Difference of Extremes 🟠
1049 Number of Fractions that Sum to 1 🟠
1050 Longest Concatenated String 🟠
1051 Largest Distance Pair 🟠
βœ… 1053 Separate People Given Dislike Relations 🟠 py
1060 Subsequence Concatenation to Target 🟠
βœ… 1061 Flip and Invert Matrix 🟒 py
1062 Fair Pay Sequel πŸ”΄
βœ… 1063 Decode List Message πŸ”΄ py
1064 Longest Prefix that Is a Suffix πŸ”΄
1068 Connect Sticks 🟠
1069 Most Occurring Number After K Increments 🟠
βœ… 1070 In Place Move Zeros to End of List 🟒 cpp
βœ… 1072 Circular Greater Element to the Right 🟠 py
1073 Kth Permutation Sequence πŸ”΄
1074 Team Voting 🟠
βœ… 1075 Profitable Job Matching 🟠 py
βœ… 1079 Count Rectangular Submatrices πŸ”΄ py
βœ… 1081 Counting Maximal Value Roots in Binary Tree 🟒 cpp
1084 Shortest Majority Substring 🟒
βœ… 1086 Deleting Repeated Integers Game 🟠 py
1087 Counting K Length Paths on Binary Tree 🟠
βœ… 1091 Matrix Prefix Sum 🟒 cpp
1092 Maximize the Minimum Value After K Sublist Increments 🟠
1093 Maximize the Number of Equivalent Pairs After Swaps 🟠
1094 Maximal Points From Deleting Two Character Substrings πŸ”΄
1095 Repeating Numbers πŸ”΄
1100 Largest Sum of Non Adjacent Numbers in Circular List 🟠
1101 Shortest Cycle Containing Target Node 🟠
1103 Partition Zero One Trees 🟠
1104 Longest Equivalent Sublist After K Increments 🟠
1105 Graph Weight Queries πŸ”΄
βœ… 1106 Even Frequency 🟒 cpp
1108 Sum of Four Numbers Less Than Target 🟠
βœ… 1109 Lowest Sum of Pair Larger than Target 🟠 cpp
1111 Smallest Pair Sum with Distance Constraint 🟒
βœ… 1113 Delete Repeated Characters with Costs 🟠 py
1118 Minimum Time to Finish K Tasks 🟠
1119 Maximum XOR Queries πŸ”΄
1120 Pair Matches Larger Than Target 🟠
βœ… 1121 Smallest Intersecting Element 🟠 cpp, py
1122 Removing Palindromic Sublists πŸ”΄
βœ… 1123 Largest Sum After K Negations 🟒 cpp
1124 Next Smaller Permutation 🟠
1125 Longest Substring with Even Vowel Counts πŸ”΄
βœ… 1126 Longest Sublist of 1s After K Sets 🟠 cpp
βœ… 1127 Lexicographically Smallest Non Palindromic String 🟠 cpp
1128 Concatenated String of Unique Count 🟠
1130 Polyglot Contest 🟠
1131 Decode Messages Sequel πŸ”΄
1132 Longest Fibonacci Subsequence 🟠
βœ… 1135 Word Machine 🟒 java
1136 Every Sublist Containing Unique Element 🟠
1137 Sum of Three Numbers Trequel 🟠
1138 Sublists Containing Maximum and Minimum πŸ”΄
1152 Win After Last Round 🟒
1154 Consecutive Wins 🟠
1155 Tag Game in a Tree πŸ”΄
1157 Double String Concatenation 🟠
1159 Least Recently Used Cache 🟠
1160 Least Frequently Used Cache πŸ”΄
βœ… 1161 Minimum Stack 🟒 cpp
βœ… 1162 Zipped Iterator 🟠 cpp
1163 Rolling Median πŸ”΄
βœ… 1164 Binary Search Tree Iterator 🟠 cpp
1166 Maximum Stack πŸ”΄
βœ… 1167 Two Dimensional List Iterator 🟠 py
βœ… 1168 Peekable Iterator 🟠 py
βœ… 1169 Run Length Decoded String Iterator 🟒 cpp
βœ… 1170 Trie 🟠 py
βœ… 1171 Hit Counter 🟠 cpp
1172 Lexicographic Combination Iterator 🟠
βœ… 1173 Sum of Two Numbers Online Version 🟒 cpp
βœ… 1174 Hash Table 🟒 cpp
βœ… 1176 Set 🟒 cpp
1177 Search Engine 🟠
1178 Incrementable Stack 🟠
βœ… 1182 Equalize List Sums with Minimal Updates 🟒 cpp
1183 Cut Rods for Profit 🟠
1184 Collecting Disappearing Coins 🟠
1185 Pick Up Gold in Two Locations πŸ”΄
βœ… 1186 Web Browser 🟠 cpp
1187 Unique Numbers From Sublist Bitwise ORs 🟠
βœ… 1188 Minimum Initial Value for Positive Prefix Sums 🟒 cpp
βœ… 1190 Check if Number Is Perfect Square 🟒 cpp
1191 Maximum Number After One Swap 🟠
1192 Distinct Subsequences πŸ”΄
1193 K Distinct Sublists πŸ”΄
βœ… 1194 Arithmetic Sequence Permutation 🟒 py
1195 Historical Map 🟠
βœ… 1196 Delete Characters to Equalize Strings 🟠 cpp
1197 Triple Inversion πŸ”΄
βœ… 1198 Fixed Point 🟒 cpp
1199 Playlist Count πŸ”΄
1200 Prefix with Equivalent Frequencies πŸ”΄
βœ… 1201 Shortest Sublist With Max Frequency 🟒 py
1202 Binary Search Tree Iterator Sequel 🟠
βœ… 1203 Frequency Stack πŸ”΄ py
βœ… 1204 Split String Into K Palindromes πŸ”΄ py
1205 Matrix Rectangular Sums 🟠
1206 Number of Islands Online Version πŸ”΄
βœ… 1208 Closest Distance to Character 🟒 cpp
1214 Minimize Amplitude After K Removals 🟒
1215 Randomized Binary Search 🟠
1216 K Distinct Groups 🟠
1218 Piece Grouping 🟠
1219 Sum of Odd Length Medians πŸ”΄
1229 Removing Enclosed Parentheses 🟠
1231 Cheapest Bus Route πŸ”΄
1232 Cheapest Cost to All Cities πŸ”΄
βœ… 1234 Removing Triple Successive Duplicates 🟒 py
1238 Task Run 🟒
βœ… 1239 Highest Volume Stocks 🟠 cpp
1242 Non Overlapping Pairs of Sublists 🟠
1247 Monotonous String Groups 🟒
1251 Window Queries 🟠
1252 Walled Off πŸ”΄
1253 Peak Heights 🟠
1254 Convert Binary Matrix to Zero Matrix πŸ”΄
βœ… 1255 Range Query on a List 🟒 cpp PrefixSum
βœ… 1256 Range Query on Two Dimensional List 🟠 cpp
1257 Range Query on a List Mutable 🟠
βœ… 1258 Turtle of Wall Street 🟒 java
1259 Max Multiplied Pairings 🟒
1260 Ball Moves 🟠
1261 Minimum Light Radius πŸ”΄
1262 Lazy Run Length Decoding 🟠
βœ… 1263 Cycle Detection in a Matrix πŸ”΄ py
βœ… 1264 Split String with Same Distinct Counts 🟠 py
1265 Number Stream to Intervals πŸ”΄
1266 Shortest Sublist to Remove to Make Sorted List 🟠
1267 Number of Decrements to Reach Zero πŸ”΄
βœ… 1268 Almost Same Strings 🟠 py
βœ… 1269 Remove Duplicates Occurring More Than Twice 🟠 cpp
βœ… 1270 Sum of Two Numbers with Sorted List 🟒 cpp
βœ… 1271 Quadratic Application 🟠 py
1272 Circular Cyclic Loop 🟠
βœ… 1273 Longest 1s After One Flip 🟠 py
βœ… 1274 Stuck Keyboard 🟒 cpp
1275 Binary Sublist with Target Sum 🟠
βœ… 1276 Sum of Two Numbers Less Than Target 🟒 cpp
1277 Balance the Directions 🟠
βœ… 1278 Split List to Minimize Largest Sum πŸ”΄ cpp
1280 Bounded Robot Moves 🟠
1282 Longest Repeating Sublist After K Updates 🟒
1283 Remove Smaller Coordinates 🟠
1285 Job Scheduling to Minimize Difficulty πŸ”΄
1286 CPU Scheduling 🟠
1287 Nearest Bus Stop From a House 🟠
1288 Unique String Split 🟠
βœ… 1291 List Partitioning with Inequality Relation 🟠 py
1292 Kth Pair Distance πŸ”΄
1293 Longest Repeating Substring 🟠
1294 Adjacent Square Sums πŸ”΄
1295 Delete Integers In Ascending Order πŸ”΄
1296 Max XOR of Two Integers 🟠
βœ… 1298 Smallest Number With No Adjacent Duplicates 🟒 java
1299 Non Adjacent Combination Sum 🟠
1300 Sublist with Largest Min Length Product πŸ”΄
1301 Race to Finish Line πŸ”΄
βœ… 1302 First to Count to Target 🟠 cpp
βœ… 1303 Unique String Frequencies 🟠 py
βœ… 1309 Lexicographically Largest Mountain List 🟒 java
1310 Reverse Equivalent Pairs 🟠
1311 Half Monotonous String 🟠
1312 Unique Paths to Go Home πŸ”΄
1313 Recover Original List From Subsequences 🟠
1314 Largest Pair of Points 🟒
1315 Tree Shifting 🟠
1316 Logically Consistent Book πŸ”΄
βœ… 1318 Sum Pairs to Target 🟠 cpp
1319 Equivalent Folded Sums 🟠
1320 Minimize Amplitude After Operations πŸ”΄
1321 Minimum Removals to Make Mountain List πŸ”΄
1322 Lowest Common Ancestor of List of Values 🟠
1327 Equalize Even and Odd Index Sums 🟠
βœ… 1328 Lexicographically Smallest String of Distance K 🟠 py
1329 Number of Operations to Decrement Target to Zero 🟠
1330 Lexicographically Smallest Leaf to Root Path 🟠
βœ… 1331 Enclosed Islands 🟠 cpp
1332 Tree Detection 🟠
βœ… 1333 Split Tree to Maximize Product 🟠 cpp
βœ… 1334 Minimum Updates to Make Bitwise OR Equal to Target 🟠 py
1335 Find a Linked List in a Binary Tree πŸ”΄
βœ… 1336 Bitwise AND of Range of Numbers 🟠 py
βœ… 1338 Rate Limiter 🟒 py
1339 Flight Scheduling 🟠
1340 Crush Numbers 🟠
βœ… 1341 Meeting Schedule For Two People 🟠 py
1342 Angry Owner 🟠
βœ… 1343 Eat Bananas in K Hours 🟠 py
1344 Permute to Make List Larger 🟠
βœ… 1345 Sum of Two Numbers in BSTs 🟠 cpp
βœ… 1346 Earliest Uniques in a Stream 🟠 py
1347 Sliding Window Product 🟠
1348 Maximize Roster Rating 🟠
1350 Crush Consecutive Numbers πŸ”΄
1351 Next Greater Element of a Linked List 🟠
βœ… 1352 Enlarge BST 🟠 cpp
1353 Max Sum Partitioning 🟠
1354 Every Sublist Min Sum 🟠
βœ… 1355 Count Nodes in Complete Binary Tree 🟠 cpp
1356 Number of K Divisible Pairs 🟠
βœ… 1357 String Equivalence Relations 🟠 py
βœ… 1358 Airplane Seat Shuffling 🟠 cpp
βœ… 1359 Maximize Social Distancing 🟒 cpp, py
1360 Multiple Coin Flips 🟠
βœ… 1361 Append List to Sum Target 🟒 cpp
1362 Cluster Management 🟠
1364 Fruit Basket Packing 🟠
1365 Toggle Bitwise Expression πŸ”΄
βœ… 1366 Vertical Lines in Binary Tree 🟒 cpp
1367 Largest Kth Value of List 🟠
1368 Common Reachable Node 🟠
1369 Minimize Absolute Difference of Three Numbers 🟠
1370 Virtual Array πŸ”΄
βœ… 1371 Tree with Distinct Parities 🟒 cpp
βœ… 1372 Connect Cartesian Coordinates 🟠 py
βœ… 1373 Index with Equal Left and Right Sums 🟒 cpp
1374 Update List Sum Closest to Target 🟠
1375 Square Submatrix Sum Below Target 🟠
βœ… 1376 Longest Arithmetic Subsequence with Difference Constraint 🟠 py
1377 Update List to Make It Strictly Increasing πŸ”΄
βœ… 1378 Minimize Amplitude After Deleting K Length Sublist 🟒 py
1379 Arithmetic Sequence Queries 🟠
1380 Number of Sublists That Don't Contain Target List 🟠
1381 Shortest Window Substring in Order πŸ”΄
1382 Count Contained Intervals 🟠
βœ… 1383 File System 🟠 py
βœ… 1384 Complete an Arithmetic Sequence 🟒 cpp
βœ… 1385 Underground Tunnel 🟠 py
1386 Ancestor Queries πŸ”΄
βœ… 1387 XOR Range Queries 🟠 py
βœ… 1388 Number of Sublists With Small Left Value πŸ”΄ py
βœ… 1389 Largest Binary Search Subtree in Value πŸ”΄ py
βœ… 1390 Contiguously Increasing Numbers 🟠 py
1391 Make Target List with Increment and Double Operations 🟠
βœ… 1392 Sum of Nodes with Even Grandparent Values 🟠 cpp
βœ… 1393 Vertical Word Arrangement 🟠 py
βœ… 1394 Remove Half of the List 🟠 py
βœ… 1395 Minimum Starting Nodes to Visit Graph 🟠 py
βœ… 1396 Minimum Dropping Path Sum 🟠 cpp
βœ… 1397 Minimum Dropping Path Sum With Column Distance Constraint 🟠 cpp
βœ… 1398 Largest Elements in Their Row and Column 🟒 py
1399 Permutations to Generate Binary Search Tree πŸ”΄
1400 Three Way String Split with Equal Ones 🟠
βœ… 1402 Maximize Binary String Score 🟒 py
βœ… 1403 Next Node on Its Right 🟠 cpp
1404 Number of Sublists With Odd Sum 🟠
1405 Place Zeros Above the Matrix Diagonal 🟠
1406 Leaf Pairs Less Than Target Distance Away 🟠
βœ… 1407 Count Substrings With All 1s 🟠 cpp
βœ… 1408 Equivalent Pairs 🟒 py
1409 Sum of Sublist Range Sum πŸ”΄
1410 Candy Race Taking Square Candies πŸ”΄
1411 Length of the Longest Path in an N Ary Tree 🟠
1412 Manipulate Bits to Zero πŸ”΄
1413 Path to Maximize Probability to Destination 🟠
1414 Delete Sublist to Make Sum Divisible By K 🟠
1415 Maximum Product Path in Matrix 🟠
βœ… 1416 Permute List to Make Largest Range Sum 🟠 py
1417 Word Distance Queries 🟠
βœ… 1418 Tic Tac Toe 🟠 py
1419 Stock Span 🟠
βœ… 1420 Maximum Unique Sublist Sum 🟠 py
βœ… 1421 Three Player Coin Game 🟠 py
1422 Kth Largest Numbers From Stream 🟠
1423 Number of Moves to Capture the King 🟠
1424 Recursive Voting 🟠
1425 Maximum Dropping Path Sum With Column Distance Cost πŸ”΄
1426 Number of Concatenations to Create Subsequence 🟠
βœ… 1427 Unobstructed Buildings 🟒 cpp
1428 Number of Substrings with Single Character Difference 🟠
βœ… 1429 Distinct Substrings 🟠 cpp
1432 Stack of Stacks πŸ”΄
1433 Continuous Path to Escape Mines πŸ”΄
βœ… 1434 Replace Linked List on Index 🟠 cpp
1435 Middle Operable Deque 🟠
βœ… 1436 Sort List by Hamming Weight 🟒 py
βœ… 1437 Circular Queue 🟠 cpp
1438 Maximum Length of Sublist with Positive Product 🟠
1439 Snapshottable List 🟠
1440 Number of Sublists with Max in Interval 🟠
1441 Rank of a Matrix πŸ”΄
1442 Trail to Minimize Effort 🟠
1443 Reduce Binary Number to One 🟠
βœ… 1444 Subtree with Maximum Average 🟠 cpp
1445 Swap Characters Once to Minimize Differences 🟠
βœ… 1446 Consecutive Ones 🟒 cpp
1447 Window Limits 🟠
1448 Intersecting Lines πŸ”΄
βœ… 1449 Search in a Virtually Complete Binary Tree 🟒 cpp
βœ… 1450 Compressed Vector Product 🟠 py
1452 Fix Flight Itinerary πŸ”΄
βœ… 1453 Virtual Boolean Array 🟠 py
1454 Kth User to Visit Website 🟠
βœ… 1455 Bulk Shift Letters 🟠 py
βœ… 1456 Sort List by Reversing Once 🟠 cpp
βœ… 1457 Unique People in Contact List 🟒 py
1458 View Over People 🟠
1459 Kth Largest Pair Product πŸ”΄
βœ… 1460 ASCII String to Integer 🟒 py
βœ… 1461 Characters in Each Bracket Depth 🟠 py
1462 Longest Consecutive Sublist 🟠
1463 Split Digits to Sum Closest To Target πŸ”΄
βœ… 1464 Mutual Followers 🟒 cpp
βœ… 1465 Virtually Cloneable Stacks 🟠 py
βœ… 1468 Cut Ribbons of Same Length 🟠 py
1469 Next Permutation From Pool πŸ”΄
βœ… 1470 5 Star Review Percentage 🟒 cpp
1471 Stock Order Execution 🟠
1472 Maximize Rook Square Values πŸ”΄
βœ… 1473 Max Product of Three Numbers 🟒 cpp
1474 Bounded Square Sums 🟠
1475 Point Distances with Shared Coordinate 🟠
1476 Towers Without a Valley πŸ”΄
βœ… 1477 First Fit Room 🟒 java
βœ… 1478 Rotate a Box Under Gravity 🟠 py
1479 Last Value Map 🟠
1480 Number of Monotonically Increasing Lists πŸ”΄
βœ… 1482 Maximum Absolute Value of Sublist 🟠 cpp
1484 Number of Non Overlapping Sublists With Sum of Target 🟠
βœ… 1485 K Numbers Greater Than or Equal to K 🟒 cpp
1486 Max Multiplied Pairings Sequel 🟠
βœ… 1487 Integer to Roman Numeral 🟠 py
1488 Longest Palindrome From Concatenating Two Subsequences πŸ”΄
1492 Largest One Submatrix with Column Swaps 🟠
1493 Shortest Path in a Graph 🟠
βœ… 1494 Swap Kth Node Values 🟠 cpp
1495 Equivalent Product Pairs 🟠
1497 Integer to English πŸ”΄
βœ… 1498 Shift to Create Range 🟒 cpp, py
1499 Remove Smallest Peaks in Order 🟠
1501 Traverse Coordinates πŸ”΄
1502 Matrix Relations πŸ”΄
βœ… 1503 Pair Sums to Power of Two 🟒 cpp
βœ… 1504 Dropped Sensor Metric 🟠 cpp
1505 Drop a Ball Down the Stairs 🟠
1506 Shortest Absolute Value Distance 🟠
1507 Sustainable Consumption πŸ”΄
1508 Generate Anagram Substrings 🟒
1511 Visible Blocks πŸ”΄
βœ… 1513 Noisy Palindrome 🟒 py
1514 Intersection of Two Maps 🟠
1515 Longest Consecutively Increasing Substring 🟠
1516 Connected Road to Destination πŸ”΄
βœ… 1517 Find Local Peaks 🟒 cpp
1519 Ambigram Detection 🟠
1520 Weighted Merge Interval 🟠
1521 Minimize Maximum Stadium Size πŸ”΄
βœ… 1522 Strictly Alternating List 🟒 py
1524 Interval Painting 🟠
1525 Blocked Pipeline 🟠
1526 Best Currency Path πŸ”΄
βœ… 1527 Insert Into Linked List 🟒 cpp
βœ… 1528 Subtree with Maximum Value 🟠 cpp
1530 Longest Matrix Path Length 🟠
1531 Ticket Order πŸ”΄
βœ… 1532 Pair and Triples 🟒 py
1533 Find Local Peaks Sequel 🟠
1534 Longest Arithmetic Sequence Tree Path πŸ”΄
1535 Longest Prefix Sequence 🟠
βœ… 1536 Validate Delivery Orders 🟒 py
βœ… 1537 Log Truncation 🟠 py
1538 Brick Layout 🟠
1539 Border Crossing πŸ”΄

About

solutions to coding problems at https://binarysearch.com


Languages

Language:C++ 54.5%Language:Python 41.2%Language:Java 4.2%Language:Shell 0.1%