Tag: greedy
-
BinarySearch 0004 Hoppable (09 Apr 2022)
-
BinarySearch 0021 Subsequence Strings (09 Apr 2022)
-
BinarySearch 0053 Create Largest Number From a List (09 Apr 2022)
-
BinarySearch 0075 Making Change (09 Apr 2022)
-
BinarySearch 0100 Max Product of Two Numbers (09 Apr 2022)
-
BinarySearch 0101 Removing Parentheses (09 Apr 2022)
-
BinarySearch 0107 Rocketship Rescue (09 Apr 2022)
-
BinarySearch 0160 Foo Bar Qaz Qux (09 Apr 2022)
-
BinarySearch 0174 Median Minimization (09 Apr 2022)
-
BinarySearch 0178 Minimum Bracket Addition (09 Apr 2022)
-
BinarySearch 0200 Hanging Banners (09 Apr 2022)
-
BinarySearch 0214 Task Hare (09 Apr 2022)
-
BinarySearch 0222 Remove Interval Overlaps (09 Apr 2022)
-
BinarySearch 0226 Movie Theatres (09 Apr 2022)
-
BinarySearch 0239 Fair Pay (09 Apr 2022)
-
BinarySearch 0241 Triangle Triplets (09 Apr 2022)
-
BinarySearch 0253 Number of Hops (09 Apr 2022)
-
BinarySearch 0270 Lego Towers (09 Apr 2022)
-
BinarySearch 0278 Target Number with Operations Sequel (09 Apr 2022)
-
BinarySearch 0288 Minimum Spanning Tree (09 Apr 2022)
-
BinarySearch 0291 Target Number with Operations (09 Apr 2022)
-
BinarySearch 0309 Maximum Number by Inserting Five (09 Apr 2022)
-
BinarySearch 0315 A Student (09 Apr 2022)
-
BinarySearch 0323 Longest Alternating Subsequence (09 Apr 2022)
-
BinarySearch 0328 123 Number Flip (09 Apr 2022)
-
BinarySearch 0329 Task Schedule (09 Apr 2022)
-
BinarySearch 0330 Largest and Smallest Difference (09 Apr 2022)
-
BinarySearch 0345 One Integer (09 Apr 2022)
-
BinarySearch 0361 Shortest String (09 Apr 2022)
-
BinarySearch 0374 Consecutively Descending Integers (09 Apr 2022)
-
BinarySearch 0382 Minimize Number of Unique Integers After Removals (09 Apr 2022)
-
BinarySearch 0385 Rookie Mistake (09 Apr 2022)
-
BinarySearch 0394 Class Scheduling (09 Apr 2022)
-
BinarySearch 0397 Fractional Knapsack (09 Apr 2022)
-
BinarySearch 0413 Non-Decreasing Digits (09 Apr 2022)
-
BinarySearch 0431 Next Closest Odd Digit Number (09 Apr 2022)
-
BinarySearch 0439 Flipped Matrix (09 Apr 2022)
-
BinarySearch 0451 Split List Into Strictly Increasing Chunks (09 Apr 2022)
-
BinarySearch 0457 Broker of Wall Street (09 Apr 2022)
-
BinarySearch 0461 List Consecutive Split (09 Apr 2022)
-
BinarySearch 0464 Lexicographic Swap (09 Apr 2022)
-
BinarySearch 0466 Length of Longest Balanced Subsequence (09 Apr 2022)
-
BinarySearch 0473 Wolves of Wall Street (09 Apr 2022)
-
BinarySearch 0477 Minimum Adjacent Swaps to Palindrome (09 Apr 2022)
-
BinarySearch 0479 Leetcode 1011. Capacity To Ship Packages Within D Days (09 Apr 2022)
-
BinarySearch 0496 Longest Sign Alternating Subsequence (09 Apr 2022)
-
BinarySearch 0516 Bit Sum (09 Apr 2022)
-
BinarySearch 0542 Cut Palindrome (09 Apr 2022)
-
BinarySearch 0543 K Lexicographically Smallest Subsequence (09 Apr 2022)
-
BinarySearch 0548 Group the Ones (09 Apr 2022)
-
BinarySearch 0554 Every Pair of Absolute Difference (09 Apr 2022)
-
BinarySearch 0555 Furthest From Origin (09 Apr 2022)
-
BinarySearch 0561 Hill Maker (09 Apr 2022)
-
BinarySearch 0564 Making Pairwise Adjacent Sums Small (09 Apr 2022)
-
BinarySearch 0570 Turn Into Non-Increasing List (09 Apr 2022)
-
BinarySearch 0573 Lexicographically Bigger String (09 Apr 2022)
-
BinarySearch 0574 Fibonacci Subset Sum (09 Apr 2022)
-
BinarySearch 0575 Resum to Target List (09 Apr 2022)
-
BinarySearch 0576 Making List Values Equal (09 Apr 2022)
-
BinarySearch 0580 Partition String (09 Apr 2022)
-
BinarySearch 0583 List Splitting to Consecutive Subsequences (09 Apr 2022)
-
BinarySearch 0594 Knight Moves to Target Coordinate (09 Apr 2022)
-
BinarySearch 0597 Minimum Number of Contiguous K-Flips (09 Apr 2022)
-
BinarySearch 0598 Longest Interval Containing One Number (09 Apr 2022)
-
BinarySearch 0629 Minimum Tree From Leaves (09 Apr 2022)
-
BinarySearch 0640 Package Matching (09 Apr 2022)
-
BinarySearch 0648 Maximum Adjacent Absolute Value Sum After One Reversal (09 Apr 2022)
-
BinarySearch 0649 Append Numbers to List to Create Range (09 Apr 2022)
-
BinarySearch 0651 Partition Lists to Make Sorted List (09 Apr 2022)
-
BinarySearch 0665 Recover Order on Queue of People (09 Apr 2022)
-
BinarySearch 0666 Minimum Difference of Extremes (09 Apr 2022)
-
BinarySearch 0673 Fair Pay Sequel (09 Apr 2022)
-
BinarySearch 0685 Shortest Majority Substring (09 Apr 2022)
-
BinarySearch 0686 Deleting Repeated Integers Game (09 Apr 2022)
-
BinarySearch 0689 Maximize the Minimum Value After K Sublist Increments (09 Apr 2022)
-
BinarySearch 0691 Maximal Points From Deleting Two Character Substrings (09 Apr 2022)
-
BinarySearch 0702 Delete Repeated Characters with Costs (09 Apr 2022)
-
BinarySearch 0708 Largest Sum After K Negations (09 Apr 2022)
-
BinarySearch 0709 Next Smaller Permutation (09 Apr 2022)
-
BinarySearch 0712 Lexicographically Smallest Non-Palindromic String (09 Apr 2022)
-
BinarySearch 0720 Sublists Containing Maximum and Minimum (09 Apr 2022)
-
BinarySearch 0721 Win After Last Round (09 Apr 2022)
-
BinarySearch 0743 Equalize List Sums with Minimal Updates (09 Apr 2022)
-
BinarySearch 0744 Cut Rods for Profit (09 Apr 2022)
-
BinarySearch 0751 Maximum Number After One Swap (09 Apr 2022)
-
BinarySearch 0770 K-Distinct Groups (09 Apr 2022)
-
BinarySearch 0774 Cheapest Bus Route (09 Apr 2022)
-
BinarySearch 0776 Removing Triple Successive Duplicates (09 Apr 2022)
-
BinarySearch 0777 Task Run (09 Apr 2022)
-
BinarySearch 0780 Monotonous String Groups (09 Apr 2022)
-
BinarySearch 0788 Turtle of Wall Street (09 Apr 2022)
-
BinarySearch 0789 Max Multiplied Pairings (09 Apr 2022)
-
BinarySearch 0791 Minimum Light Radius (09 Apr 2022)
-
BinarySearch 0807 Balance the Directions (09 Apr 2022)
-
BinarySearch 0808 Split List to Minimize Largest Sum (09 Apr 2022)
-
BinarySearch 0810 Longest Repeating Sublist After K Updates (09 Apr 2022)
-
BinarySearch 0811 Remove Smaller Coordinates (09 Apr 2022)
-
BinarySearch 0821 Max XOR of Two Integers (09 Apr 2022)
-
BinarySearch 0822 Smallest Number With No Adjacent Duplicates (09 Apr 2022)
-
BinarySearch 0824 Sublist with Largest Min-Length Product (09 Apr 2022)
-
BinarySearch 0827 Unique String Frequencies (09 Apr 2022)
-
BinarySearch 0828 Lexicographically Largest Mountain List (09 Apr 2022)
-
BinarySearch 0833 Largest Pair of Points (09 Apr 2022)
-
BinarySearch 0837 Equivalent Folded Sums (09 Apr 2022)
-
BinarySearch 0842 Lexicographically Smallest String of Distance K (09 Apr 2022)
-
BinarySearch 0852 Flight Scheduling (09 Apr 2022)
-
BinarySearch 0857 Permute to Make List Larger (09 Apr 2022)
-
BinarySearch 0873 Append List to Sum Target (09 Apr 2022)
-
BinarySearch 0875 Fruit Basket Packing (09 Apr 2022)
-
BinarySearch 0878 Largest Kth Value of List (09 Apr 2022)
-
BinarySearch 0893 Count Contained Intervals (09 Apr 2022)
-
BinarySearch 0902 Make Target List with Increment and Double Operations (09 Apr 2022)
-
BinarySearch 0905 Remove Half of the List (09 Apr 2022)
-
BinarySearch 0915 Place Zeros Above the Matrix Diagonal (09 Apr 2022)
-
BinarySearch 0926 Permute List to Make Largest Range Sum (09 Apr 2022)
-
BinarySearch 0931 Three Player Coin Game (09 Apr 2022)
-
BinarySearch 0937 Unobstructed Buildings (09 Apr 2022)
-
BinarySearch 0949 Rank of a Matrix (09 Apr 2022)
-
BinarySearch 0953 Swap Characters Once to Minimize Differences (09 Apr 2022)
-
BinarySearch 0961 Kth User to Visit Website (09 Apr 2022)
-
BinarySearch 0963 Sort List by Reversing Once (09 Apr 2022)
-
BinarySearch 0974 Next Permutation From Pool (09 Apr 2022)
-
BinarySearch 0977 Maximize Rook Square Values (09 Apr 2022)
-
BinarySearch 0978 Max Product of Three Numbers (09 Apr 2022)
-
BinarySearch 0982 First Fit Room (09 Apr 2022)
-
BinarySearch 0987 Number of Non-Overlapping Sublists With Sum of Target (09 Apr 2022)
-
BinarySearch 0988 K Numbers Greater Than or Equal to K (09 Apr 2022)
-
BinarySearch 0992 Largest One Submatrix with Column Swaps (09 Apr 2022)
-
BinarySearch 1010 Longest Consecutively Increasing Substring (09 Apr 2022)
-
BinarySearch 1012 Find Local Peaks (09 Apr 2022)
-
BinarySearch 1026 Longest Arithmetic Sequence Tree Path (09 Apr 2022)
-
Leetcode 0045. Jump Game II (09 Apr 2022)
-
Leetcode 0055 Jump Game (09 Apr 2022)
-
Leetcode 0122 Best Time to Buy and Sell Stock II (09 Apr 2022)
-
Leetcode 0134. Gas Station (09 Apr 2022)
-
Leetcode 0135. Candy (09 Apr 2022)
-
Leetcode 0179. Largest Number (09 Apr 2022)
-
Leetcode 0253. Meeting Rooms II (09 Apr 2022)
-
Leetcode 0316. Remove Duplicate Letters (09 Apr 2022)
-
Leetcode 0321. Create Maximum Number (09 Apr 2022)
-
Leetcode 0330. Patching Array (09 Apr 2022)
-
Leetcode 0358. Rearrange String k Distance Apart (09 Apr 2022)
-
Leetcode 0376. Wiggle Subsequence (09 Apr 2022)
-
Leetcode 0392. Is Subsequence (09 Apr 2022)
-
Leetcode 0402 Remove K Digits (09 Apr 2022)
-
Leetcode 0406. Queue Reconstruction by Height (09 Apr 2022)
-
Leetcode 0410. Split Array Largest Sum (09 Apr 2022)
-
Leetcode 0421. Maximum XOR of Two Numbers in an Array (09 Apr 2022)
-
Leetcode 0435. Non-overlapping Intervals (09 Apr 2022)
-
Leetcode 0452. Minimum Number of Arrows to Burst Balloons (09 Apr 2022)
-
Leetcode 0455 Assign Cookies (09 Apr 2022)
-
Leetcode 0484. Find Permutation (09 Apr 2022)
-
Leetcode 0502 IPO (09 Apr 2022)
-
Leetcode 0514 Freedom Trail (09 Apr 2022)
-
Leetcode 0517 Super Washing Machines (09 Apr 2022)
-
Leetcode 0548. Split Array with Equal Sum (09 Apr 2022)
-
Leetcode 0555. Split Concatenated Strings (09 Apr 2022)
-
Leetcode 0561 Array Partition I (09 Apr 2022)
-
Leetcode 0573. Squirrel Simulation (09 Apr 2022)
-
Leetcode 0611. Valid Triangle Number (09 Apr 2022)
-
Leetcode 0621. Task Scheduler (09 Apr 2022)
-
Leetcode 0624 Maximum Distance in Arrays (09 Apr 2022)
-
Leetcode 0625 Minimum Factorization (09 Apr 2022)
-
Leetcode 0628 Maximum Product of Three Numbers (09 Apr 2022)
-
Leetcode 0630. Course Schedule III (09 Apr 2022)
-
Leetcode 0646 Maximum Length of Pair Chain (09 Apr 2022)
-
Leetcode 0649 Dota2 Senate (09 Apr 2022)
-
Leetcode 0659 Split Array into Consecutive Subsequences (09 Apr 2022)
-
Leetcode 0670 Maximum Swap (09 Apr 2022)
-
Leetcode 0678 Valid Parenthesis String (09 Apr 2022)
-
Leetcode 0680 Valid Palindrome II (09 Apr 2022)
-
Leetcode 0714. Best Time to Buy and Sell Stock with Transaction Fee (09 Apr 2022)
-
Leetcode 0738 Monotone Increasing Digits (09 Apr 2022)
-
Leetcode 0757 Set Intersection Size At Least Two (09 Apr 2022)
-
Leetcode 0763. Partition Labels (09 Apr 2022)
-
Leetcode 0768 Max Chunks To Make Sorted II (09 Apr 2022)
-
Leetcode 0769 Max Chunks To Make Sorted (09 Apr 2022)
-
Leetcode 0846 Hand of Straights (09 Apr 2022)
-
Leetcode 0857 Minimum Cost to Hire K Workers (09 Apr 2022)
-
Leetcode 0860 Lemonade Change (09 Apr 2022)
-
Leetcode 0861 Score After Flipping Matrix (09 Apr 2022)
-
Leetcode 0870. Advantage Shuffle (09 Apr 2022)
-
Leetcode 0871. Minimum Number of Refueling Stops (09 Apr 2022)
-
Leetcode 0881. Boats to Save People (09 Apr 2022)
-
Leetcode 0908. Smallest Range I (09 Apr 2022)
-
Leetcode 0910. Smallest Range II (09 Apr 2022)
-
Leetcode 0921 Minimum Add to Make Parentheses Valid (09 Apr 2022)
-
Leetcode 0936. Stamping The Sequence (09 Apr 2022)
-
Leetcode 0942. DI String Match (09 Apr 2022)
-
Leetcode 0945. Minimum Increment to Make Array Unique (09 Apr 2022)
-
Leetcode 0948. Bag of Tokens (09 Apr 2022)
-
Leetcode 0954. Array of Doubled Pairs (09 Apr 2022)
-
Leetcode 0955. Delete Columns to Make Sorted II (09 Apr 2022)
-
Leetcode 0964. Least Operators to Express Number (09 Apr 2022)
-
Leetcode 0976. Largest Perimeter Triangle (09 Apr 2022)
-
Leetcode 0979. Distribute Coins in Binary Tree (09 Apr 2022)
-
Leetcode 0984. String Without AAA or BBB (09 Apr 2022)
-
Leetcode 0991. Broken Calculator (09 Apr 2022)
-
Leetcode 0995. Minimum Number of K Consecutive Bit Flips (09 Apr 2022)
-
Leetcode 1005. Maximize Sum Of Array After K Negations (09 Apr 2022)
-
Leetcode 1007. Minimum Domino Rotations For Equal Row (09 Apr 2022)
-
Leetcode 1011. Capacity To Ship Packages Within D Days (09 Apr 2022)
-
Leetcode 1024. Video Stitching (09 Apr 2022)
-
Leetcode 1029. Two City Scheduling (09 Apr 2022)
-
Leetcode 1033. Moving Stones Until Consecutive (09 Apr 2022)
-
Leetcode 1040. Moving Stones Until Consecutive II (09 Apr 2022)
-
Leetcode 1042. Flower Planting With No Adjacent (09 Apr 2022)
-
Leetcode 1053. Previous Permutation With One Swap (09 Apr 2022)
-
Leetcode 1054. Distant Barcodes (09 Apr 2022)
-
Leetcode 1055 Shortest Way to Form String (09 Apr 2022)
-
Leetcode 1058 Minimize Rounding Error to Meet Target (09 Apr 2022)
-
Leetcode 1081. Smallest Subsequence of Distinct Characters (09 Apr 2022)
-
Leetcode 1090. Largest Values From Labels (09 Apr 2022)
-
Leetcode 1094. Car Pooling (09 Apr 2022)
-
Leetcode 1111. Maximum Nesting Depth of Two Valid Parentheses Strings (09 Apr 2022)
-
Leetcode 1121 Divide Array Into Increasing Sequences (09 Apr 2022)
-
Leetcode 1130. Minimum Cost Tree From Leaf Values (09 Apr 2022)
-
Leetcode 1135 Connecting Cities With Minimum Cost (09 Apr 2022)
-
Leetcode 1144. Decrease Elements To Make Array Zigzag (09 Apr 2022)
-
Leetcode 1147. Longest Chunked Palindrome Decomposition (09 Apr 2022)
-
Leetcode 1167 Minimum Cost to Connect Sticks (09 Apr 2022)
-
Leetcode 1171. Remove Zero Sum Consecutive Nodes from Linked List (09 Apr 2022)
-
Leetcode 1183 Maximum Number of Ones (09 Apr 2022)
-
Leetcode 1196 How Many Apples Can You Put into the Basket (09 Apr 2022)
-
Leetcode 1199 Minimum Time to Build Blocks (09 Apr 2022)
-
Leetcode 1217. Minimum Cost to Move Chips to The Same Position (09 Apr 2022)
-
Leetcode 1221. Split a String in Balanced Strings (09 Apr 2022)
-
Leetcode 1288. Remove Covered Intervals (09 Apr 2022)
-
Leetcode 1296. Divide Array in Sets of K Consecutive Numbers (09 Apr 2022)
-
Leetcode 1326. Minimum Number of Taps to Open to Water a Garden (09 Apr 2022)
-
Leetcode 1328. Break a Palindrome (09 Apr 2022)
-
Leetcode 1330. Reverse Subarray To Maximize Array Value (09 Apr 2022)
-
Leetcode 1338. Reduce Array Size to The Half (09 Apr 2022)
-
Leetcode 1354. Construct Target Array With Multiple Sums (09 Apr 2022)
-
Leetcode 1363. Largest Multiple of Three (09 Apr 2022)
-
Leetcode 1383. Maximum Performance of a Team (09 Apr 2022)
-
Leetcode 1388. Pizza With 3n Slices (09 Apr 2022)
-
Leetcode 1402. Reducing Dishes (09 Apr 2022)
-
Leetcode 1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K (09 Apr 2022)
-
Leetcode 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts (09 Apr 2022)
-
Leetcode 1488 Avoid Flood in The City (09 Apr 2022)
-
Leetcode 1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits (09 Apr 2022)
-
Leetcode 1520. Maximum Number of Non-Overlapping Substrings (09 Apr 2022)
-
Leetcode 1526 Minimum Number of Increments on Subarrays to Form a Target Array (09 Apr 2022)
-
Leetcode 1536. Minimum Swaps to Arrange a Binary Grid (09 Apr 2022)
-
Leetcode 1558. Minimum Numbers of Function Calls to Make Target Array (09 Apr 2022)
-
Leetcode 1561. Maximum Number of Coins You Can Get (09 Apr 2022)
-
Leetcode 1564 Put Boxes Into the Warehouse I (09 Apr 2022)
-
Leetcode 1579. Remove Max Number of Edges to Keep Graph Fully Traversable (09 Apr 2022)
-
Leetcode 1580 Put Boxes Into the Warehouse II (09 Apr 2022)
-
Leetcode 1585. Check If String Is Transformable With Substring Sort Operations (09 Apr 2022)
-
Leetcode 1589. Maximum Sum Obtained of Any Permutation (09 Apr 2022)
-
Leetcode 1606. Find Servers That Handled Most Number of Requests (09 Apr 2022)
-
Leetcode 1608. Special Array With X Elements Greater Than or Equal X (09 Apr 2022)
-
Leetcode 1616 Split Two Strings to Make Palindrome (09 Apr 2022)
-
Leetcode 1632. Rank Transform of a Matrix (09 Apr 2022)
-
Leetcode 1648 Sell Diminishing-Valued Colored Balls (09 Apr 2022)
-
Leetcode 1663. Smallest String With A Given Numeric Value (09 Apr 2022)
-
Leetcode 1665 Minimum Initial Energy to Finish Tasks (09 Apr 2022)
-
Leetcode 1673. Find the Most Competitive Subsequence (09 Apr 2022)
-
Leetcode 1674 Minimum Moves to Make Array Complementary (09 Apr 2022)
-
Leetcode 1689. Partitioning Into Minimum Number Of Deci-Binary Numbers (09 Apr 2022)
-
Leetcode 1691 Maximum Height by Stacking Cuboids (09 Apr 2022)
-
Leetcode 1703. Minimum Adjacent Swaps for K Consecutive Ones (09 Apr 2022)
-
Leetcode 1708 Largest Subarray Length K (09 Apr 2022)
-
Leetcode 1710. Maximum Units on a Truck (09 Apr 2022)
-
Leetcode 1727. Largest Submatrix With Rearrangements (09 Apr 2022)
-
Leetcode 1739 Building Boxes (09 Apr 2022)
-
Leetcode 1762 Buildings With an Ocean View (09 Apr 2022)
-
Leetcode 1775. Equal Sum Arrays With Minimum Number of Operations (09 Apr 2022)
-
Leetcode 1788 Maximize the Beauty of the Garden (09 Apr 2022)
-
Leetcode 1793. Maximum Score of a Good Subarray (09 Apr 2022)
-
Leetcode 1794 Count Pairs of Equal Substrings With Minimum Difference (09 Apr 2022)
-
Leetcode 1802 Maximum Value at a Given Index in a Bounded Array (09 Apr 2022)
-
Leetcode 1827. Minimum Operations to Make the Array Increasing (09 Apr 2022)
-
Leetcode 1840. Maximum Building Height (09 Apr 2022)
-
Leetcode 1872. Stone Game VIII (09 Apr 2022)
-
Leetcode 1874 Minimize Product Sum of Two Arrays (09 Apr 2022)
-
Leetcode 1899. Merge Triplets to Form Target Triplet (09 Apr 2022)
-
Leetcode 1946. Largest Number After Mutating Substring (09 Apr 2022)
-
Leetcode 1969. Minimum Non-Zero Product of the Array Elements (09 Apr 2022)
-
Leetcode 1989 Maximum Number of People That Can Be Caught in Tag (09 Apr 2022)
-
Leetcode 1996 The Number of Weak Characters in the Game (09 Apr 2022)
-
Leetcode 2007. Find Original Array From Doubled Array (09 Apr 2022)
-
Leetcode 2014. Longest Subsequence Repeated k Times (09 Apr 2022)
-
Leetcode 2030. Smallest K-Length Subsequence With Occurrences of a Letter (09 Apr 2022)
-
Leetcode 2045. Second Minimum Time to Reach Destination (09 Apr 2022)
-
Leetcode 2071. Maximum Number of Tasks You Can Assign (09 Apr 2022)
-
Leetcode 2214. Minimum Health to Beat Game (09 Apr 2022)