NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new

Given a list of directed edges edges representing one-way connections between nodes in a graph, and a starting node start. Each edge is given as a two-element array [u, v] where u is the source node and v is the target node. Your task is to find the destination node (a node without outgoing edges) by traveling from the starting node along these directed edges until you reach the destination.

Test Cases
Input
Output
Expected