20.05.2023 399. Evaluate Division medium blog post Join me on Telegram https://t.me/leetcode_daily_unstoppable/218 Problem TLDR Given values for a/b and b/c find answers for a/c. Intuition Let’s build a graph, a -> b with weights of values[a/b]. Then answer is a path from one node to the other. The shortest path can be found with a Breadth-First Search.
# 20.05.2023 [399. Evaluate Division]
# 20.05.2023 [399. Evaluate Division]
# 20.05.2023 [399. Evaluate Division]
20.05.2023 399. Evaluate Division medium blog post Join me on Telegram https://t.me/leetcode_daily_unstoppable/218 Problem TLDR Given values for a/b and b/c find answers for a/c. Intuition Let’s build a graph, a -> b with weights of values[a/b]. Then answer is a path from one node to the other. The shortest path can be found with a Breadth-First Search.