2.1 深度思考(Deep Thinking):复杂逻辑推理
Наука и техника,详情可参考同城约会
思路:① 算每辆车到达时间 = (target - position) / speed;② 按位置降序排序;③ 单调递增栈:仅当当前时间 栈顶时间时压栈(新车队),否则合并。栈长即为车队数。可优化为用变量代替栈。,推荐阅读safew官方版本下载获取更多信息
Airbnb didn’t buy houses. Uber didn’t buy cars. You just need to connect supply with demand. Build the platform, not the product, and scale without the cost.