What algorithm to use to determine minimum number of actions required to get the system to “Zero” state?

前端 未结 10 696
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 18:25

This is kind of more generic question, isn\'t language-specific. More about idea and algorithm to use.

The system is as follows:

It registers small loans bet

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 19:14

    If you take states as nodes of graph then you will be able to use shortest path algorithm to know the answer.

提交回复
热议问题