LeetCode
Question
·
Jul 2020
Facebook merge graph nodes
20 upvotes
4,319 views
16 replies
Question Details
Given a directed graph such as: A -> B -> C -> D merge it into one node ABCD. second example: A -> -> D B -> C E -> -> F after merge: A ->...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Graph
More from Meta
Reddit
Leetcode is cooked in 2026 and we don't hire people who only grind leetcode.
Reddit
Returning to SWE work after 3 years of cancer treatment
Reddit
2026 New Grad Recap
Reddit
Most likely failed meta phone screen
Reddit
Targeting OpenAI SWE Roles? Insights on what to expect from recent system design loops