7 ms·
Little bit of nitpicking: If x = y = 1, then value = 0. I wonder why he didn't just choose value to be 100y/x.
by ivanist 13y ago
Little bit of nitpicking: If x = y = 1, then value = 0. I wonder why he didn't just choose value to be 100y/x.
- thedufer 13y agoI 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.