摘要: There is a hotel with n rooms. The rooms are represented by a 2D integer array rooms where rooms[i] = [roomIdi, sizei] denotes that there is a room wi 阅读全文
posted @ 2021-05-02 03:00 CNoodle 阅读(188) 评论(0) 推荐(0)
摘要: You are given an array of positive integers arr. Perform some operations (possibly none) on arr so that it satisfies these conditions: The value of th 阅读全文
posted @ 2021-05-02 01:30 CNoodle 阅读(261) 评论(0) 推荐(0)
摘要: Design a system that manages the reservation state of n seats that are numbered from 1 to n. Implement the SeatManager class: SeatManager(int n) Initi 阅读全文
posted @ 2021-05-02 00:58 CNoodle 阅读(269) 评论(0) 推荐(0)
摘要: You are given a 0-indexed string s that has lowercase English letters in its even indices and digits in its odd indices. There is a function shift(c, 阅读全文
posted @ 2021-05-02 00:42 CNoodle 阅读(238) 评论(0) 推荐(0)