New answers tagged

2

Your code is clearly organized and well presented, but it suffers from a number of problems, from the trivial to the profound. var i = 0 is never used and doesn't need to be there. safety: There's no check for bad input. pascal(2,1) will happily java.lang.StackOverflowError. Your code indicates a lack of familiarity with the Scala Standard Library. ...


Top 50 recent answers are included