LeetCode:Trips and Users
1、题目名称 Trips and Users(出租车预约取消率) 2、题目地址 https://leetcode.com/problems/trips-and-users/ 3、题目内容 表Trips内存储了出租车的接单数据,包括Id、Client_Id、Driver_Id、City_Id、Status、Request_at共计6列,其中Status列是个枚举列,包括completed(已完成)、cancelled_by_driver(由司机取消)、cancelled_by_client(由乘客取消)三类: +----+-----------+-----------+---------+--------------------+----------+ | Id | Client_Id | Driver_Id | City_Id | Status |Request_at| +----+-----------+-----------+---------+--------------------+----------+ | 1 | 1 | 10 | 1 | completed |2013-10-01| | 2 | 2 | 11 | 1 | cancelled_by_driver|2013-10-01| | 3 | 3 | 12 | 6 | completed |2013-10-01| |