The DatologyAI online assessment included a Java coding problem centered on building a simplified calendar / event collection.
Events were defined by a start time, end time, and name. The main requirement was to support inserting events and returning all stored events in a precisely defined order: start time first, then end time, then event name. Duplicate events were explicitly allowed.
Interview Details
Coding — Calendar Event Ordering
The starter code described a timeline containing events with three attributes:
Start time
End time
Event name
The calendar exposed operations conceptually similar to:
add_event(startTime, endTime, name)
get_events()
add_event(startTime, endTime, name)
get_events()
Calling add_event stores a new event. The same event may be inserted multiple times, and all time values are positive integers.
get_events() should return the stored events according to the following precedence:
Unlock Full Details
Create a free account to unlock this interview experience report.