Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by srean

4 days ago

Yes.

That is why half open sets, half open intervals, are convenient.

If a bus leaves every 10 minutes starting at 1 PM, how many buses leave per hour ? Do we include the 2PM bus in the first hour ?

It helps to cover the space by non-overlapping equal intervals.

Shows up in 0 indexed for loops as well i < n

0 comments

srean

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities