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

Comment by poochkoishi728

1 year ago

{0, -1, 1}. Divide (in order): 0/-1 -> 0/1 -> 0. Add: 0 - 1 + 1 = 0

2 comments

poochkoishi728

Reply

MadSudaca  1 year ago

also {-1, 1, 1}

  • poochkoishi728  1 year ago

    Seems not to work as division yields -1 (-1/1/1) and adding them yields +1 (-1+1+1).

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities