Minimum Fuel Cost to Report to the Capital | Graph | LeetCode Medium
Channel: Just enjoy the journey
Date: 20/11/2022

Source Code - https://gist.github.com/LastComrade/fa4cec82a4543d87c4e9547ccdd1f86b
Problem Link - https://leetcode.com/contest/weekly-contest-320/problems/minimum-fuel-cost-to-report-to-the-capital/

Time Complexity - O(N), where N is the number of cities or nodes
Space Complexity - 
1. O(N^2) (Worst case) 
2. Θ(N) (Average case)