Advanced Graph
Thirty-five questions on advanced graph techniques that go beyond traversal — flow, bipartite matching, and more.
Cracking the Safe
hardThere is a safe protected by a password.
Critical Connections in a Network
hardThere are n servers numbered from 0 to n - 1 connected by undirected server-to-server connections forming a network where connections[i] = [ai, bi] represents a connection between...
Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
hardGiven a weighted undirected connected graph with n vertices numbered from 0 to n - 1, and an array edges where edges[i] = [ai, bi, weighti] represents a bidirectional and weighted...
Minimum Edge Weight Equilibrium Queries in a Tree
hardThere is an undirected tree with n nodes labeled from 0 to n - 1.
Minimum Number of Days to Disconnect Island
hardYou are given an m x n binary grid grid where 1 represents land and 0 represents water.
Reconstruct Itinerary
hardYou are given a list of airline tickets where tickets[i] = [fromi, toi] represent the departure and the arrival airports of one flight.
Valid Arrangement of Pairs
hardYou are given a 0-indexed 2D integer array pairs where pairs[i] = [starti, endi].