MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / MyCalendarTwo

Method MyCalendarTwo

MyCallendar2.java:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3 List<int[]> bookings;
4 TreeMap<Integer,Integer> overlappedMap;
5 public MyCalendarTwo() {
6 bookings = new ArrayList<>();
7 overlappedMap = new TreeMap<>();
8 }
9
10 public boolean book(int start, int end) {
11 //if event is present in overlapped then return false

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected