So, you’re looking to get better at coding with Python, and maybe you’ve heard about LeetCode. It’s a pretty popular place to practice coding problems, especially if you’re aiming for tech jobs.
Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child ...