Leetcode 365 - Water and Jug Problem

Post thumbnail
Post thumbnail
Prompt: This is the Dead End problem in the movies. You are given two jugs, each with different capacity, an infinity source of water, and a target capacity. The goal is to determine if you can measure the target capacity using the two jugs. You are allowed to fill each... [Read More]
Tags: Leetcode BFS DFS

Leetcode 2101 - Detonate the Maximum Bombs

Post thumbnail
Post thumbnail
Prompt: Given a list of bombs, find the maximum number of bombs that can be triggered from triggering one bomb. Please note that one bomb can trigger another bomb if the second bomb is within the first bomb’s blast radius. The bombs in the list are stored like bombs[i] =... [Read More]
Tags: Leetcode DFS