massiachan

Results 3 comments of massiachan

写了一个只用一个TreeSet的版本, Java ``` class ExamRoom { private TreeSet occupied; private int max; public ExamRoom(int n) { occupied = new TreeSet(); max = n - 1; } public int seat() {...

第一题为什么移动较矮的指针呢?好难想到。。

赞一个!写得很清楚,终于给整明白了