#124

Binary Tree Maximum Path Sum

hard· Treesruns: 0

A path in a binary tree is a sequence of nodes where each adjacent pair has an edge connecting them. A node can appear in the sequence at most once. The path does not need to pass through the root. Given the root of a binary tree, return the maximum path sum of any non-empty path.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.