Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

solutions to coding problems athttps://binarysearch.com

NotificationsYou must be signed in to change notification settings

yaeba/binary-search-solutions

Repository files navigation

Generate the table using python3:

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

About

solutions to coding problems athttps://binarysearch.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp