1. 首页
  2. 数据库
  3. 其它
  4. Leetcode 1396:设计地铁系统(超详细的解法!!!)

Leetcode 1396:设计地铁系统(超详细的解法!!!)

上传者: 2021-02-01 16:49:14上传 PDF文件 53.46KB 热度 6次
请你实现一个类 UndergroundSystem ,它支持以下 3 种方法: 1.checkIn(int id, string stationName, int t) 编号为 id 的乘客在 t 时刻进入地铁站 stationName 。 一个乘客在同一时间只能在一个地铁站进入或者离开。 2.checkOut(int id, string stationName, int t) 编号为 id 的乘客在 t 时刻离开地铁站 stationName 。 3.getAverageTime(string startStation, string endStation) 返回从地铁站 startSta
下载地址
用户评论