← All problemsSign in

3924. Minimum Threshold Path With Limited Heavy Edges

LeetCodeBinary SearchBreadth-First SearchGraph TheoryOpen on judge ↗

There is an undirected weighted graph with n nodes labeled from 0 to n - 1. The graph is represented by a 2D integer array edges, where each edge edges[i] = [ui, vi, w​​​​​​​i] indicates that there is an undirected edge between nodes ui and vi with weight w​​​​​​​i. You are also given integers source, target and k. A threshold value determines whether an edge is considered light or heavy: - An

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start