package leetcode;

/**
 * https://leetcode.com/problems/exam-room/
 */
public class Problem855 {
    private static class ExamRoom {
        public ExamRoom(int N) {
        }

        public int seat() {
            // TODO
            return 0;
        }

        public void leave(int p) {
            // TODO
        }
    }

    public static void main(String[] args) {
        Problem855 prob = new Problem855();
    }
}

@@ -380,43 +380,294 @@
     
-Problem855 prob = new Problem855();
+ExamRoom room = new ExamRoom(10);%0A        System.out.println(room.seat()); // 0%0A        System.out.println(room.seat()); // 9%0A        System.out.println(room.seat()); // 4%0A        System.out.println(room.seat()); // 2%0A        room.leave(4);%0A        System.out.println(room.seat()); // 5
 %0A   

Update problem 855