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,501–2,600 of 3,736
- 2501. Satisfy Every Seating Wish Hard · Graph, Depth-First Search
- 2502. Heaviest Cable Between Two Posts Hard · Graph, Tree, Bit Manipulation, Dynamic Programming
- 2503. Hound and Hare Hard · Graph, Breadth-First Search
- 2504. Ways to Open the Wings Hard · Graph, Depth-First Search, Tree, Math
- 2505. Waystations on Long Roads Hard · Graph, Heap (Priority Queue)
- 2506. Cheapest Walk Under Bitwise AND Hard · Graph, Union Find, Bit Manipulation
- 2507. At Most K Courses per Term Hard · Graph, Bit Manipulation, Dynamic Programming
- 2508. Collect Every Coin From Two Away Hard · Graph, Topological Sort, Tree
- 2509. Round Table of Favourites Hard · Graph, Depth-First Search, Topological Sort
- 2510. Secret Passed at Meetings Hard · Graph, Union Find, Sorting
- 2511. Quarantine One Infected Machine Medium · Graph, Union Find, Depth-First Search
- 2512. Best Sightseeing Loop Hard · Graph, Backtracking
- 2513. Route Closest to the Plan Hard · Graph, Dynamic Programming
- 2514. Codewords One Edit Apart Hard · Graph, Union Find, Bit Manipulation, Hash Table
- 2515. Height After Pruning a Branch Hard · Graph, Depth-First Search, Tree
- 2516. Island Shapes Up to Rotation Hard · Graph, Depth-First Search, Matrix, Hash Table, Sorting
- 2517. Ferries With Timetables Hard · Graph, Heap (Priority Queue)
- 2518. Cut the Fewest Junctions Hard · Graph, Breadth-First Search
- 2519. K Cheapest Journeys Hard · Graph, Heap (Priority Queue)
- 2520. Runner-Up Spanning Tree Hard · Graph, Union Find, Tree, Bit Manipulation
- 2521. Checkpoints Every Route Uses Hard · Graph, Topological Sort, Dynamic Programming, Math
- 2522. Many Tokens on a DAG Hard · Graph, Memoization, Math
- 2523. Same Shape Family Trees Hard · Graph, Tree, Hash Table, Sorting
- 2524. Two Teams After Each Feud Hard · Graph, Union Find
- 2525. Close Pairs in a Big Tree Hard · Graph, Depth-First Search, Tree
- 2526. Endless Profit Route Hard · Graph, Dynamic Programming
- 2527. Colour Gate Network Hard · Graph, Heap (Priority Queue)
- 2528. Assign Cookies Easy · Array, Greedy, Two Pointers, Sorting
- 2529. Lemonade Change Easy · Array, Greedy
- 2530. Jump Game Medium · Array, Greedy, Dynamic Programming · Asked at Amazon, Google, Microsoft
- 2531. Non-overlapping Intervals Medium · Array, Greedy, Intervals, Sorting · Asked at Meta, Amazon, Google
- 2532. Minimum Number of Arrows to Burst Balloons Medium · Array, Greedy, Intervals, Sorting · Asked at Amazon
- 2533. Candy Hard · Array, Greedy · Asked at Amazon, Google
- 2534. Minimum Number of Taps to Open to Water a Garden Hard · Array, Greedy, Intervals, Dynamic Programming · Asked at Google
- 2535. Fewest Coins from a Standard Till Easy · Array, Greedy, Sorting
- 2536. Slot In a New Booking Medium · Array, Intervals
- 2537. Shared Free Windows Medium · Array, Intervals, Two Pointers
- 2538. Free Days on the Calendar Medium · Array, Intervals, Sorting
- 2539. Fresh Paint Each Day Hard · Array, Intervals, Union Find
- 2540. Most Souvenirs on a Budget Easy · Array, Greedy, Sorting
- 2541. Triangle Fence from Planks Easy · Array, Greedy, Sorting, Math
- 2542. Exactly K Sign Flips Easy · Array, Greedy, Sorting
- 2543. Most Balanced Segments Easy · String, Greedy, Counting
- 2544. Gather Tokens on One Square Easy · Array, Greedy, Math
- 2545. Pair Up for the Best Minimums Easy · Array, Greedy, Sorting
- 2546. Loading the Cargo Van Easy · Array, Greedy, Sorting
- 2547. Third Item Free Checkout Easy · Array, Greedy, Sorting
- 2548. Can You Attend Every Class Easy · Array, Intervals, Sorting
- 2549. Who Is Busy at Moment T Easy · Array, Intervals
- 2550. Compress Ticket IDs into Ranges Easy · Array, Intervals
- 2551. Unsold Seats in a Row Easy · Array, Intervals
- 2552. Turn One Six Upside Down Easy · Math, Greedy
- 2553. Two Numbers from One Set of Digits Easy · Math, Greedy, Sorting
- 2554. Build a Rising Staircase Easy · Array, Greedy
- 2555. Longest Mirror Word from Tiles Easy · String, Hash Table, Greedy, Counting
- 2556. Typing on a Letter Ring Easy · String, Greedy
- 2557. Return Empties for Refills Easy · Math, Simulation, Greedy
- 2558. Desks for Every Student Easy · Array, Greedy, Sorting
- 2559. Patch the Brackets Easy · String, Greedy, Stack
- 2560. Halve or Subtract to Zero Easy · Math, Bit Manipulation, Greedy
- 2561. Shared Cuts to Zero Easy · Array, Hash Table, Greedy
- 2562. Alternate the Lights Easy · String, Greedy, Counting
- 2563. Smallest Palindrome with Fewest Edits Easy · String, Greedy, Two Pointers
- 2564. Largest Odd Bit Arrangement Easy · String, Greedy, Bit Manipulation
- 2565. Fewest Crates for the Harvest Easy · Array, Greedy, Sorting
- 2566. Pack Orders into Bags in Order Easy · Array, Greedy, Simulation
- 2567. Erase Marks Three at a Time Easy · String, Greedy
- 2568. Peak Lobby Occupancy Easy · String, Simulation, Counting
- 2569. Year with the Most Members Easy · Array, Intervals, Prefix Sum
- 2570. Do Two Time Slots Clash Easy · String, Intervals
- 2571. Drop One Digit for the Biggest Number Easy · String, Greedy
- 2572. Most Positive Running Totals Easy · Array, Greedy, Sorting, Prefix Sum
- 2573. Refuel Stops with a Fixed Tank Easy · Array, Greedy
- 2574. Drone Waypoint Tour Easy · Array, Greedy, Math
- 2575. Remap the Keypad for Fewest Presses Easy · String, Greedy, Sorting, Counting
- 2576. Meetings That Clash with Mine Easy · Array, Intervals
- 2577. Breaks Between Meetings Easy · Array, Intervals, Sorting
- 2578. Shared Hours of Two Friends Easy · Array, Intervals
- 2579. Is Every Mile Patrolled Easy · Array, Intervals
- 2580. Days Two Visits Overlap Easy · String, Intervals, Math
- 2581. Most Passed Checkpoint on a Loop Easy · Array, Simulation
- 2582. Watering Can Trips Easy · Array, Simulation, Greedy
- 2583. Do Two Posters Overlap Easy · Math, Intervals
- 2584. Collect Every Upswing Easy · Array, Greedy
- 2585. Longest Free Stretch of Floors Easy · Array, Sorting, Intervals
- 2586. Cover the Holes with Boards Easy · Array, Greedy, Sorting
- 2587. Break Up Long Runs Easy · String, Greedy
- 2588. One Parity Swap for the Smallest Easy · String, Greedy
- 2589. First-Come Room Bookings Easy · Array, Intervals, Simulation
- 2590. Fewest 0/1-Digit Numbers Easy · String, Greedy
- 2591. Keep the K Largest in Order Easy · Array, Sorting, Greedy
- 2592. Farthest Differently Painted Houses Easy · Array, Greedy
- 2593. Pick the Max and Grow It Easy · Array, Greedy, Math
- 2594. Fewest Clock Adjustments Easy · String, Greedy, Math
- 2595. Clip Bookings to a Window Easy · Array, Intervals
- 2596. First Gap Long Enough Easy · Array, Intervals, Sorting
- 2597. Average Wait at the Food Truck Easy · Array, Simulation
- 2598. Add One Rest Stop Easy · Array, Greedy, Math
- 2599. Largest Even from the Digits Easy · String, Greedy, Sorting
- 2600. Rising Share Handout Easy · Math, Simulation