Parse user-defined functions and the calls inside them into a graph, then find the longest call chain and the longest cycle, if any.
Parse user-defined functions and the calls inside them into a graph, then find the longest call chain and the longest cycle, if any.
Unlock the full question and reference solution
One-time unlock. Yours forever.
Or get a for every question, unlimited code runs and AI mock interviews.
Opens with the full question.