Hacker News new | ask | show | jobs
by Daneel_ 183 days ago
The logic results in 3 + 3 - 5 = 1, so it's not 5, sorry.

I'd love to know what logic path you followed to get 5 though!

2 comments

I did it in my head but got 4 (3 * 3 - 5), so I fail, too. Hopefully I'd be paying closer attention if I was actually applying for a job.
where did your multiplication come from?
From not paying close attention :)
Presumably you'd get it if you short-circuited and didn't evaluate the else part.