![]() Initially, the tree set contains a single interval. Also maintain a tree set to store the intervals, where the intervals are sorted in ascending order. Maintain a map that stores each day and the index of the bulb that is turned on. The intervals are compared according to start in ascending order and then according to end in ascending order. Each object of Interval has data fields start and end that represents the start position and the end position. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |