Maximum Product of Splitted Binary Tree | leetcode -1339 | DSA in Telugu | Binary Trees
Автор: Prudhvi Codes
Загружено: 2026-01-07
Просмотров: 39
👉 WhatsApp Community (Daily LeetCode POTD & DSA Updates):
https://www.whatsapp.com/channel/0029...
👉 Connect with me on LinkedIn:
/ prudhvi-raj-macherla
LeetCode 1339 | Maximum Product of Splitted Binary Tree | Java
In this video, we solve LeetCode Problem 1339 – Maximum Product of Splitted Binary Tree.
You are given a binary tree. By removing exactly one edge, the tree is split into two subtrees. The goal is to maximize the product of the sums of the two resulting subtrees.
The solution focuses on:
Calculating the total sum of the tree
Using DFS traversal to compute subtree sums
Evaluating product at each possible split
Keeping track of the maximum product
This problem helps in strengthening concepts of Binary Trees, DFS traversal, and tree-based calculations.
Language:
Java
Topics:
Binary Tree
Depth First Search (DFS)
Tree Traversal
Recursion
If you find the video helpful, please like, share, and subscribe for more DSA & LeetCode content in Telugu.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: