Coding interview problems
3,736 problems: 937 Easy, 1,914 Medium, 885 Hard. Each runs against hidden tests, in 13 languages; database problems in SQL. Free for members.
Solve them in the app Explore guides
Problems 2,601–2,700 of 3,736
- 2601. Booked Minutes in a Window Easy · Array, Intervals
- 2602. Drop Nested Shifts Medium · Array, Intervals, Sorting
- 2603. Fewest Recording Studios Medium · Array, Intervals, Sorting, Heap (Priority Queue)
- 2604. Shuttle Seat Check Medium · Array, Prefix Sum, Simulation
- 2605. Seat Reservations Ledger Medium · Array, Prefix Sum
- 2606. Cut a String into Closed Chunks Medium · String, Greedy, Hash Table, Two Pointers
- 2607. Carve Out a Maintenance Window Medium · Array, Intervals
- 2608. Next Session to Join Medium · Array, Intervals, Binary Search, Sorting
- 2609. Crowd at Each Query Time Medium · Array, Intervals, Binary Search, Sorting
- 2610. Most Festival Shows Attended Medium · Array, Greedy, Heap (Priority Queue), Sorting
- 2611. Two Gigs, Best Pay Medium · Array, Intervals, Sorting, Binary Search
- 2612. Earliest Joint Slot Medium · Array, Intervals, Sorting, Two Pointers
- 2613. Mixed Paint Segments Medium · Array, Intervals, Prefix Sum, Sorting
- 2614. Keep the Running Balance Afloat Medium · Array, Greedy, Heap (Priority Queue), Prefix Sum
- 2615. Widen to Match Medium · Array, Sorting, Two Pointers, Sliding Window
- 2616. Splitting Ranges into Two Teams Medium · Array, Intervals, Sorting, Math
- 2617. Accept Unless Triple Booked Medium · Array, Intervals, Simulation
- 2618. Fewest Hops to the Dock Medium · Array, Greedy
- 2619. Hop Across Stepping Stones Medium · String, Greedy, Prefix Sum, Sliding Window
- 2620. Starting Depot on a Loop Route Medium · Array, Greedy
- 2621. Job Runner with Cooldown Medium · Array, Greedy, Counting, Heap (Priority Queue)
- 2622. Rearrange with No Twin Neighbours Medium · String, Greedy, Heap (Priority Queue), Counting
- 2623. Longest String Without Triples Medium · String, Greedy, Heap (Priority Queue)
- 2624. Trim K Digits to the Smallest Medium · String, Greedy, Stack, Monotonic Stack
- 2625. Smallest Sequence of Unique Letters Medium · String, Greedy, Stack, Monotonic Stack
- 2626. Largest Number with Rising Digits Medium · Math, Greedy
- 2627. One Swap for the Biggest Number Medium · Math, Greedy
- 2628. Restore the Photo Line Medium · Array, Greedy, Sorting
- 2629. Split Hires Across Two Offices Medium · Array, Greedy, Sorting
- 2630. Tandem Kayak Pairing Medium · Array, Greedy, Sorting, Two Pointers
- 2631. Deal Cards into Consecutive Runs Medium · Array, Greedy, Hash Table, Sorting
- 2632. Flow Values Leftward Medium · Array, Greedy, Prefix Sum, Binary Search
- 2633. Extend or Start a Run Medium · Array, Greedy, Hash Table
- 2634. Outpace the Rival Lineup Medium · Array, Greedy, Sorting, Two Pointers
- 2635. Fewest Fibonacci Pieces Medium · Math, Greedy
- 2636. Favours for Reputation Medium · Array, Greedy, Sorting, Two Pointers
- 2637. Letters Dominate After Sorting Medium · String, Greedy, Sorting
- 2638. Unique Badge Numbers Medium · Array, Greedy, Sorting, Counting
- 2639. Cash In AB and BA Pairs Medium · String, Greedy, Stack
- 2640. Flip Rows and Columns for the Biggest Total Medium · Array, Matrix, Greedy, Bit Manipulation
- 2641. Sell from Shrinking Stock Medium · Array, Greedy, Sorting, Math
- 2642. Longest Zigzag Picks Medium · Array, Greedy, Dynamic Programming
- 2643. Largest Total Divisible by Three Medium · Array, Greedy, Math, Dynamic Programming
- 2644. Brackets with Wildcards Medium · String, Greedy
- 2645. Group Riders into Four-Seat Cabs Medium · Array, Greedy, Counting
- 2646. Fewest Swaps to Balance Brackets Medium · String, Greedy, Stack
- 2647. Make Every Letter Count Different Medium · String, Greedy, Hash Table, Sorting
- 2648. Ropes and Ramps Medium · Array, Greedy, Heap (Priority Queue)
- 2649. Convoys at the Finish Medium · Array, Sorting, Stack
- 2650. Tightest Window per Query Hard · Array, Intervals, Sorting, Heap (Priority Queue)
- 2651. Roof the Lots with K Awnings Medium · Array, Greedy, Sorting
- 2652. Best-Paid Non-Clashing Contracts Hard · Array, Intervals, Dynamic Programming, Binary Search, Sorting
- 2653. Halve or Nudge to One Medium · Math, Bit Manipulation, Greedy
- 2654. Two Checkpoints per Route Hard · Array, Intervals, Greedy, Sorting
- 2655. Uniform Tile Row Medium · Array, Greedy
- 2656. Alternating Council Vote Medium · String, Greedy, Queue
- 2657. Fewest Kinds After Removals Medium · Array, Greedy, Hash Table, Sorting
- 2658. Halve the Crowd by Kinds Medium · Array, Greedy, Hash Table, Sorting
- 2659. Trios Within Tolerance Medium · Array, Greedy, Sorting
- 2660. Top Up the Sacks Medium · Array, Greedy, Sorting
- 2661. Unbraid Same-Color Beads Medium · Array, String, Greedy
- 2662. Every A Before Every B Medium · String, Greedy, Dynamic Programming
- 2663. Rounds of Pairs and Triples Medium · Array, Greedy, Hash Table, Math
- 2664. Outrun the Advancing Robots Medium · Array, Greedy, Sorting
- 2665. Paint Then Dry Medium · Array, Greedy, Sorting
- 2666. Pick from Two of Three Piles Medium · Math, Greedy, Heap (Priority Queue)
- 2667. Cheapest Tree from Leaves Medium · Array, Greedy, Stack, Monotonic Stack
- 2668. Cost of Joining Ropes Medium · Array, Greedy, Heap (Priority Queue)
- 2669. Lift Team Win Rates Medium · Array, Greedy, Heap (Priority Queue)
- 2670. Single-Core Job Order Medium · Array, Heap (Priority Queue), Sorting, Simulation
- 2671. Match Workers to Their Best Jobs Medium · Array, Greedy, Sorting, Two Pointers
- 2672. Balanced Duo Workloads Medium · Array, Greedy, Sorting, Two Pointers
- 2673. Smooth Steps Peak Medium · Array, Greedy, Sorting
- 2674. Double or Step to the Target Medium · Math, Greedy
- 2675. Smallest Word of a Given Weight Medium · String, Greedy
- 2676. Insert a Digit for the Maximum Medium · String, Greedy
- 2677. Suffix Flips to Target Bits Medium · String, Greedy
- 2678. Back-and-Forth Walk to a Target Medium · Math, Greedy
- 2679. P Pairs with the Tightest Gap Medium · Array, Greedy, Binary Search, Sorting
- 2680. Spread the Sensors Medium · Array, Greedy, Binary Search, Sorting
- 2681. Pair Off Unequal Neighbours Medium · Array, Greedy
- 2682. Growing Group Tiers Medium · Array, Greedy, Math
- 2683. Pieces with No Repeated Letter Medium · String, Greedy, Hash Table
- 2684. Digit Chunks Under a Cap Medium · String, Greedy
- 2685. Most Disjoint Runs with Target Sum Medium · Array, Greedy, Hash Table, Prefix Sum
- 2686. Swap Letters to Match Medium · String, Greedy, Math
- 2687. K Boosts for the Biggest Product Medium · Array, Greedy, Heap (Priority Queue)
- 2688. Locker for the Swimmer Medium · Array, Heap (Priority Queue), Sorting, Simulation
- 2689. Nudge Heights Closer Medium · Array, Greedy, Sorting
- 2690. Flip Ends to a Uniform String Medium · String, Greedy
- 2691. Bench Blocks for Teams Medium · Array, Greedy, Hash Table
- 2692. Sortable Chunks of a Permutation Medium · Array, Greedy
- 2693. Longest Tarp over Planted Plots Medium · Array, Intervals, Sorting, Sliding Window, Prefix Sum
- 2694. Combined Area of Two Posters Medium · Math, Intervals
- 2695. Least Late by Deadline Order Medium · Array, Greedy, Sorting
- 2696. One-Day Jobs Before Deadlines Medium · Array, Greedy, Heap (Priority Queue), Sorting
- 2697. Order Jobs by Weight Ratio Medium · Array, Greedy, Sorting
- 2698. Fractional Cargo Value Medium · Array, Greedy, Sorting
- 2699. Upswings with a Broker Fee Medium · Array, Greedy, Dynamic Programming
- 2700. Append to Embed a Word Medium · String, Greedy, Two Pointers