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,701–2,800 of 3,736
- 2701. Fewest Copies to Spell the Target Medium · String, Greedy, Two Pointers
- 2702. Smallest Up-Down Permutation Medium · String, Greedy, Stack
- 2703. Binary Down to One Medium · String, Greedy, Bit Manipulation
- 2704. Guessing Group Sizes Medium · Array, Greedy, Hash Table, Math
- 2705. Four-Slot Ovens Medium · Array, Greedy, Sorting
- 2706. Reservoir Release Plan Medium · Array, Greedy, Hash Table, Binary Search
- 2707. Shrink Gaps with K Moves Medium · Array, Greedy, Heap (Priority Queue), Binary Search
- 2708. Equal-Weight Rowing Pairs Medium · Array, Greedy, Sorting, Two Pointers
- 2709. Ordered Jobs with Cooldown Medium · Array, Hash Table, Simulation
- 2710. Fill Blanks for Least Repeats Medium · String, Greedy, Heap (Priority Queue), Counting
- 2711. Cover Points with Given Strips Medium · Array, Intervals, Greedy, Sorting
- 2712. Move One Meeting for a Longer Break Medium · Array, Intervals, Greedy
- 2713. Shift K Meetings for a Longer Break Medium · Array, Intervals, Sliding Window
- 2714. Corridor Lamps at Allowed Spots Medium · Array, Greedy, Sorting
- 2715. Largest String with a Repeat Cap Medium · String, Greedy, Heap (Priority Queue), Counting
- 2716. Cut a Length for the Biggest Product Medium · Math, Greedy
- 2717. Bubble Rows to a Lower Triangle Medium · Array, Matrix, Greedy
- 2718. Mentors at Least Double Medium · Array, Greedy, Sorting, Two Pointers
- 2719. Smallest Word Within a Budget Medium · String, Greedy
- 2720. Number the Busiest Stations Medium · Graph, Greedy, Sorting
- 2721. Largest Merge of Two Words Medium · String, Greedy, Two Pointers
- 2722. Smallest Number with Digit Product N Medium · Math, Greedy
- 2723. Settle Stones Consecutively Medium · Array, Sorting, Sliding Window
- 2724. Merge Neighbours into a Mirror Medium · Array, Greedy, Two Pointers
- 2725. Smoothest Circle of Heights Medium · Array, Greedy, Sorting
- 2726. Longest Pick per Budget Easy · Array, Greedy, Sorting, Binary Search, Prefix Sum
- 2727. Fading Gift Picks Medium · Array, Greedy, Sorting
- 2728. Dispatch Shuttles with a Wait Limit Medium · Array, Greedy, Sorting
- 2729. Drop One Guard Shift Medium · Array, Intervals, Sorting, Prefix Sum
- 2730. Most Conflicted Meeting Medium · Array, Intervals, Sorting, Binary Search
- 2731. Bridge Gaps with Short Shifts Medium · Array, Intervals, Sorting
- 2732. Time with at Least K Overlaps Medium · Array, Intervals, Sorting
- 2733. Spread Labels to Be Distinct Medium · Array, Greedy, Sorting
- 2734. Two-Tone Alternating Array Medium · Array, Greedy, Hash Table, Counting
- 2735. Middle Share of Coin Trios Medium · Array, Greedy, Sorting
- 2736. Hire from Both Ends Medium · Array, Greedy, Heap (Priority Queue), Two Pointers
- 2737. Shift One Run for the Smallest Medium · String, Greedy
- 2738. Last Cart Off the Rail Medium · Array, Math
- 2739. Shift Letters Within K Moves Medium · String, Hash Table, Greedy, Counting
- 2740. Mirror Chain of Two-Letter Words Medium · String, Hash Table, Greedy, Counting
- 2741. Alternate Projects Weekly Medium · Array, Greedy, Math
- 2742. Team-Wide Free Slots Medium · Array, Intervals, Sorting, Heap (Priority Queue)
- 2743. Fewest Powered-On Seconds Hard · Array, Intervals, Greedy, Sorting
- 2744. Narrowest Window Hitting Every List Hard · Array, Heap (Priority Queue), Two Pointers, Sorting
- 2745. Total Area of Overlapping Posters Hard · Array, Intervals, Sorting, Math
- 2746. City Silhouette Outline Hard · Array, Heap (Priority Queue), Sorting, Intervals
- 2747. Stacked Crates Heights Hard · Array, Intervals, Sorting
- 2748. Peak Overlap After Each Booking Hard · Array, Intervals, Sorting, Prefix Sum
- 2749. Fewest Fuel Stops with Variable Pumps Hard · Array, Greedy, Heap (Priority Queue)
- 2750. Biggest Number from Two Rows Hard · Array, Greedy, Stack, Monotonic Stack
- 2751. Throughput of a Picking Team Hard · Array, Greedy, Heap (Priority Queue), Sorting
- 2752. Most Repairs Before Cutoffs Hard · Array, Greedy, Heap (Priority Queue), Sorting
- 2753. Proportional Fee Panel Hard · Array, Greedy, Heap (Priority Queue), Sorting
- 2754. Adjacent Swaps to a Mirror Hard · String, Greedy, Two Pointers
- 2755. Shelve Books in K Sections Hard · Array, Greedy, Sorting
- 2756. Patch Sums to Cover a Range Hard · Array, Greedy
- 2757. Enough Stamina for Every Task Hard · Array, Greedy, Sorting
- 2758. Boost the Weakest District Hard · Array, Greedy, Binary Search, Prefix Sum, Sliding Window
- 2759. Smallest Pick with a Required Letter Hard · String, Greedy, Stack, Monotonic Stack
- 2760. Tiered Groups with Usage Caps Hard · Array, Greedy, Sorting, Math
- 2761. Most Self-Contained Substrings Hard · String, Greedy, Intervals
- 2762. Busiest Conference Room Hard · Array, Heap (Priority Queue), Sorting, Simulation
- 2763. Cheapest Cover of a Road Hard · Array, Intervals, Dynamic Programming, Sorting
- 2764. Lifters, Crates and Energy Drinks Hard · Array, Greedy, Binary Search, Sorting, Queue
- 2765. Equalize Two Card Hands Hard · Array, Greedy, Hash Table, Sorting
- 2766. Best Window Around an Index Hard · Array, Greedy, Two Pointers, Stack
- 2767. Flip K-Windows to All Ones Hard · Array, Greedy, Sliding Window, Queue
- 2768. Grow a Pair to the Target Hard · Math, Greedy
- 2769. Even Out the Bakery Trays Hard · Array, Greedy, Math
- 2770. Seat Partners Together Hard · Array, Greedy, Union Find, Hash Table
- 2771. Print a Banner with a Roller Hard · String, Greedy, Queue
- 2772. Rebuild from Ones by Sums Hard · Array, Greedy, Heap (Priority Queue)
- 2773. Layered Paint Strokes Medium · Array, Greedy, Stack
- 2774. Tighten the Spread by Halving Hard · Array, Greedy, Heap (Priority Queue)
- 2775. Power N Devices the Longest Hard · Array, Greedy, Binary Search, Sorting
- 2776. Gather K Beacons Together Hard · Array, Greedy, Sliding Window, Prefix Sum
- 2777. Late Jobs with Prerequisites Hard · Array, Greedy, Graph, Topological Sort, Heap (Priority Queue)
- 2778. Cover Ring Points with Arcs Hard · Array, Intervals, Greedy, Binary Search
- 2779. K-Way File Merge Cost Hard · Array, Greedy, Heap (Priority Queue)
- 2780. Most Sortable Chunks with Duplicates Hard · Array, Stack, Monotonic Stack, Greedy
- 2781. Move a Front Letter to the Back Medium · String, Math, Sorting
- 2782. Tallest Tower Under Height Caps Hard · Array, Greedy, Sorting, Math
- 2783. Tiles Form an Exact Rectangle Hard · Array, Hash Table, Math
- 2784. Two-Station Assembly Order Hard · Array, Greedy, Sorting
- 2785. Cheapest Fuel Road Trip Hard · Array, Greedy, Stack
- 2786. Cheapest Common Height Hard · Array, Greedy, Sorting, Binary Search
- 2787. K Crews, Most Jobs Hard · Array, Intervals, Greedy, Sorting, Binary Search
- 2788. Cap Overlap at K Hard · Array, Intervals, Greedy, Heap (Priority Queue), Sorting
- 2789. Unit Tasks with Release and Deadline Hard · Array, Greedy, Heap (Priority Queue), Sorting
- 2790. Trading with Regret Hard · Array, Greedy, Heap (Priority Queue)
- 2791. Spread Repeats K Apart Hard · String, Greedy, Heap (Priority Queue), Counting
- 2792. Deadline Jobs with Rewards Hard · Array, Dynamic Programming, Sorting, Greedy
- 2793. Shortest Remaining Work First Hard · Array, Heap (Priority Queue), Simulation, Greedy
- 2794. Outline Length of a Poster Wall Hard · Array, Intervals, Sorting, Math
- 2795. Where Greedy Change Fails Hard · Array, Greedy, Dynamic Programming, Math
- 2796. Separate Bookings with Least Shifting Hard · Array, Intervals, Greedy, Heap (Priority Queue)
- 2797. Match Visitors to Time Slots Medium · Array, Intervals, Greedy, Heap (Priority Queue), Sorting
- 2798. K Picks with No Neighbours in a Ring Hard · Array, Greedy, Heap (Priority Queue), Linked List
- 2799. People, Keys and the Office Hard · Array, Binary Search, Greedy, Sorting
- 2800. Split into a Non-Decreasing List Hard · Array, Greedy, Math