So Selection Sort, while it might be easier perhaps to think through than Bubble Sort, or maybe it's pretty much equivalent, it's just a different approach to the same problem.
因此,仔细想想,选择排序也许比,冒泡排序更简单,或者这两者都差不多,只是对同一问题的不同方法而已。
Well, I guess in the first case where you have the one worker and the five, it's a choice between those two and you have to make a certain choice and people are going to die because of the trolley car, not necessarily because of your direct actions.
我认为,在第一种情况中是撞死一个还是五个,你只能在这两者中选择,不管你做出的是哪一个选择,总得有人被电车撞死,而他们的死,并非你的直接行为导致。
应用推荐