Skip to content

【每日一题】- 2020-04-27 - 多人运动 #347

Closed
@azl397985856

Description

@azl397985856

已知小猪每晚都要约好几个女生到酒店房间。每个女生 i 与小猪约好的时间由 [si , ei]表示,其中 si 表示女生进入房间的时间, ei 表示女生离开房间的时间。由于小猪心胸开阔,思想开明,不同女生可以同时存在于小猪的房间。请计算出小猪最多同时在做几人的「多人运动」。

例子:
Input : [[ 0 , 30] ,[ 5 , 10 ] , [15 , 20 ] ]
OutPut :最多同时有两个女生的「三人运动」

类似问题:力扣会议室系列。比如:https://leetcode-cn.com/problems/meeting-rooms-ii/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions