Bloomberg前端电面被问到博弈问题, 求大神看看怎么做

avatar地里匿名用户YL3TK
1202
5
Design a game where each car can move foward 1 step at 50% chance,create a scalable React component to display which cars are winners。Hint:component receive props:distance、number of cars、probability of movement(如50%)
不需要显示car的名称,只需要显示index就行。
  • 2
5条回复