Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ivanist
· 13y ago · 0 comments
Little bit of nitpicking: If x = y = 1, then value = 0. I wonder why he didn't just choose value to be 100y/x.
Comments
[–]
thedufer
13y ago
I suspect the log is in there to give you points for experience in interviewing. I would argue that `log(x+1)` would make more sense, to avoid that 0 issue.