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,201–2,300 of 3,736
- 2201. Fewest Charging Stops for an EV Hard · Array, Greedy, Heap (Priority Queue), Dynamic Programming
- 2202. Workshop Marathon Hard · Array, Greedy, Sorting, Heap (Priority Queue)
- 2203. Strongest Squad Hard · Array, Greedy, Sorting, Heap (Priority Queue)
- 2204. Cheapest Crew Paid by Quality Hard · Array, Greedy, Sorting, Heap (Priority Queue)
- 2205. Balance After Discarding a Third Hard · Array, Prefix Sum, Heap (Priority Queue), Dynamic Programming
- 2206. Curated Exhibit Score Hard · Array, Hash Table, Greedy, Sorting, Heap (Priority Queue)
- 2207. Rewind the Sum Machine Hard · Array, Heap (Priority Queue), Math
- 2208. Narrowest Spread With Doubling and Halving Hard · Array, Greedy, Heap (Priority Queue)
- 2209. Splitting Workers to Build Blocks Hard · Array, Greedy, Heap (Priority Queue), Math
- 2210. Smoothest Staircase Cost Hard · Array, Greedy, Heap (Priority Queue)
- 2211. Trading One Unit a Day Hard · Array, Greedy, Heap (Priority Queue)
- 2212. Non-Adjacent Booth Picks Hard · Array, Greedy, Heap (Priority Queue), Linked List
- 2213. Best Pair of Signal Posts Hard · Array, Sliding Window, Heap (Priority Queue)
- 2214. Plate Racks Hard · Design, Stack, Heap (Priority Queue)
- 2215. Shortest Covering Window per Query Hard · Array, Sorting, Heap (Priority Queue), Intervals
- 2216. City Outline Keypoints Hard · Array, Sorting, Heap (Priority Queue), Divide and Conquer
- 2217. Rendezvous Tower Hard · Array, Heap (Priority Queue), Binary Search
- 2218. Threshold Grid Exploration Hard · Array, Matrix, Heap (Priority Queue), Breadth-First Search, Sorting
- 2219. Gate Timers Grid Hard · Array, Matrix, Graph, Heap (Priority Queue)
- 2220. Waypoints Reached Within a Step Budget Hard · Graph, Heap (Priority Queue)
- 2221. Two Shipments, One Destination Hard · Graph, Heap (Priority Queue)
- 2222. Second-Fastest Arrival With Traffic Lights Hard · Graph, Heap (Priority Queue), Breadth-First Search
- 2223. Kth Shortest Walk Hard · Graph, Heap (Priority Queue)
- 2224. Cheapest Toll Route Before the Deadline Hard · Graph, Heap (Priority Queue), Dynamic Programming
- 2225. Project Finish With Limited Workers Hard · Graph, Topological Sort, Heap (Priority Queue), Simulation
- 2226. Earliest Slot for Task Zero First Hard · Graph, Topological Sort, Heap (Priority Queue)
- 2227. Heaviest Tree After Degree Trimming Hard · Tree, Depth-First Search, Dynamic Programming, Greedy, Heap (Priority Queue)
- 2228. Flood Fill Easy · Array, Depth-First Search, Breadth-First Search, Matrix · Asked at Amazon, Google
- 2229. Find if Path Exists in Graph Easy · Graph, Union Find, Depth-First Search, Breadth-First Search
- 2230. Rotting Oranges Medium · Array, Breadth-First Search, Matrix · Asked at Amazon, Microsoft, Google
- 2231. Course Schedule Medium · Graph, Topological Sort, Depth-First Search, Breadth-First Search · Asked at Amazon, Google, Meta
- 2232. Network Delay Time Medium · Graph, Heap (Priority Queue), Breadth-First Search · Asked at Google, Amazon
- 2233. Word Ladder Hard · Hash Table, String, Breadth-First Search, Graph · Asked at Amazon, Meta, Google
- 2234. Critical Connections in a Network Hard · Graph, Depth-First Search · Asked at Amazon
- 2235. Hub of the Courier Network Easy · Graph
- 2236. Count the Archipelago Medium · Graph, Depth-First Search, Breadth-First Search, Matrix
- 2237. Largest Vineyard Plot Medium · Graph, Depth-First Search, Matrix
- 2238. Sealed Lagoons Medium · Graph, Depth-First Search, Matrix
- 2239. Outrun the Wildfire Hard · Graph, Breadth-First Search, Binary Search, Matrix
- 2240. Richest Alliance Easy · Array, Graph, Union Find, Depth-First Search
- 2241. The Village Elder Easy · Graph, Array, Counting
- 2242. Friend Count per Member Easy · Graph, Array
- 2243. Busiest Interchange Easy · Graph, Array, Counting
- 2244. Towns No Road Enters Easy · Graph, Array
- 2245. Last Stop on the Ticket Chain Easy · Graph, Hash Table, String
- 2246. Matrix to Neighbor Lists Easy · Graph, Matrix, Array
- 2247. Every Street Runs Both Ways Easy · Graph, Hash Table
- 2248. Fence Around the Pond Easy · Graph, Matrix, Array
- 2249. How Many Villages Hear the Bell Easy · Graph, Depth-First Search, Breadth-First Search
- 2250. Hops From the Lighthouse Easy · Graph, Breadth-First Search, Queue
- 2251. Ripple Order Easy · Graph, Breadth-First Search, Queue
- 2252. Explorer's Diary Easy · Graph, Depth-First Search, Recursion
- 2253. Exactly K Handshakes Away Easy · Graph, Breadth-First Search
- 2254. Widest Ring of the Ripple Easy · Graph, Breadth-First Search, Queue
- 2255. Is It a Single Trail Easy · Graph, Depth-First Search
- 2256. Is It One Ring Easy · Graph, Depth-First Search
- 2257. Spot the Doubled Road Easy · Graph, Hash Table
- 2258. Lonely Servers Easy · Graph, Array, Counting
- 2259. Tips of the Branches Easy · Graph, Array
- 2260. Everyone Knows Everyone Easy · Graph, Hash Table
- 2261. Same Number of Links Easy · Graph, Array
- 2262. Ranking Junctions by Traffic Easy · Graph, Greedy, Sorting
- 2263. Shared Neighbours Easy · Graph, Hash Table
- 2264. Friends of Friends Easy · Graph, Hash Table
- 2265. Mutual Followers Easy · Graph, Hash Table
- 2266. Flip Every Arrow Easy · Graph, Array
- 2267. Is the Itinerary Drivable Easy · Graph, Hash Table
- 2268. Toll for the Planned Drive Easy · Graph, Hash Table
- 2269. Robot Through the Warehouse Easy · Graph, Breadth-First Search, Matrix, Queue
- 2270. Cells Within the Battery Easy · Graph, Breadth-First Search, Matrix
- 2271. Can the Snowplough Trace It Easy · Graph, Depth-First Search, Math
- 2272. Coastline Cells Easy · Graph, Matrix, Array
- 2273. Cheapest Wire at Each Pole Easy · Graph, Array
- 2274. Club Sizes Easy · Graph, Union Find, Sorting
- 2275. Who Reports to Whom Easy · Graph, Breadth-First Search, Tree
- 2276. Longest Chain of Command Easy · Graph, Breadth-First Search, Tree
- 2277. Farthest Cabin From the Gate Easy · Graph, Breadth-First Search, Tree
- 2278. Links in the Missing Graph Easy · Graph, Array, Math
- 2279. Suggest a New Friend Easy · Graph, Hash Table, Counting
- 2280. Roads Between Two Colours Easy · Graph, Array, String
- 2281. Is the Map Coloured Properly Easy · Graph, Array
- 2282. One Letter Apart Easy · Graph, String, Hash Table
- 2283. Reachable From Both Camps Easy · Graph, Breadth-First Search
- 2284. Gift Exchange Circles Easy · Graph, Array
- 2285. Follow the Signposts Easy · Graph, Array, Simulation
- 2286. Is the Floor Plan One Piece Easy · Graph, Breadth-First Search, Matrix
- 2287. Tallest Neighbour Easy · Graph, Array
- 2288. Steepest Segment of the Trail Easy · Graph, Depth-First Search, Tree
- 2289. Route Between Two Cabins Easy · Graph, Breadth-First Search, Tree
- 2290. Team Sizes Under Each Lead Easy · Graph, Depth-First Search, Tree
- 2291. Does the Trail Loop Easy · Graph, Union Find
- 2292. Dead Ends in the Maze Easy · Graph, Matrix, Array
- 2293. Command Centre Medium · Graph, Depth-First Search
- 2294. Arrow Tile Walk Easy · Graph, Matrix, Simulation, Hash Table
- 2295. Neighbourhood Average Easy · Graph, Array, Math
- 2296. Bordering Districts Easy · Graph, Matrix, Hash Table
- 2297. Busiest Road Easy · Graph, Array
- 2298. Groups After Each Handshake Easy · Graph, Union Find
- 2299. Domino Chain Reaction Easy · Graph, Breadth-First Search
- 2300. Smallest Label in My Group Easy · Graph, Union Find