Tanmoy1228's blog

By Tanmoy1228, history, 9 years ago, In English

can anyone give me any idea for this problem.

Problem: The Great Ball

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Store each entrance and exit as an event (a change in number of people which is +1 or -1, and a time the event occurs). Then process the events in order of time and keep track of the number of people after each event.