why float(“infinity”) is best to calculate closest value?

前端 未结 0 1045
小蘑菇
小蘑菇 2020-12-25 08:08

why float("infinity") is best to calculate closest value while traversing in a tree? please explain it with example. for ex:

closest value = infinit         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题