Try these popular Algorithm and Java books:
1. Cracking the Coding Interview: 150 Programming Questions and Solutions
[ Ссылка ]
2. Introduction to Algorithms
[ Ссылка ]
3. Java Pocket Guide: Instant Help for Java Programmers
[ Ссылка ]
*As an Amazon Associate I earn from qualifying purchases.
*******************************************************************************************
Like and Subscribe if you enjoy my content!
Or give advice or alternative solutions in the comments below!
Problem: [ Ссылка ]
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 connections. The path must contain at least one node and does not need to go through the root.
*******************************************************************************************
Follow me on:
Twitter - [ Ссылка ]
LinkedIn - [ Ссылка ]...
GitHub - [ Ссылка ]
*******************************************************************************************
Thumbnail Source:
Photo by Richard Loader on Unsplash
![](https://i.ytimg.com/vi/ChOq1pxNUxQ/maxresdefault.jpg)