LeetCode 2045 - Second Minimum Time to Reach Destination - Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 3

  • @narayanpradhan1931
    @narayanpradhan1931 3 หลายเดือนก่อน +4

    thanks man, it was really helpful!

  • @aximilian15
    @aximilian15 2 หลายเดือนก่อน

    Does the floyd algorithm works for this problem?

    • @Alpha-Code
      @Alpha-Code  2 หลายเดือนก่อน +1

      I don't think it would, there might not be any cycles at all. Then you'd have to create one and hard to say where you would etc.