NITIN23329 / LeetCode

This repo contains several problems solved at leetcode
MIT License
1 stars 0 forks source link

solve in O(n) #26

Closed NITIN23329 closed 3 years ago

NITIN23329 commented 3 years ago

problem : https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/ O(n^2) solution : https://github.com/NITIN23329/LeetCode/blob/6fdbec0ad1101b9359c4f6eac536ea2a61e89a6b/Trees/MinimumCostTreeFromLeafValue.java#L1

NITIN23329 commented 3 years ago

Solved 👍 https://github.com/NITIN23329/LeetCode/blob/6f2e609a7f058add38be4f41ed3246dc23ef4411/dynamicProgramming/MinimumCostTreeValue.java#L1