Ad
  • Default User Avatar

    I would argue against doing so as it promotes boolean blindness. Also, nowhere in the domain of the problem does it contain an operation in which two directions are tested for equality.

  • Default User Avatar

    The initial state of the haskell solution is wrong. The function signature should be [[Double]] -> Double and not [[Int]] -> Double

  • Default User Avatar

    For Haskell, I am getting "Missing language" when submitting my answer.

  • Default User Avatar

    Making this function safe should not be done via returning a string. Instead a sum type like Maybe or Either should be used. It seems the original Haskell solution used Either, but I guess it was removed.

  • Default User Avatar

    I would have preferred catMaybes and partition to be moved into the list section because at the point you reach them you do not yet know how lists are going to work. Also the functions are over lists anyways, so it's that weird to put them with the other list functions. I do like the current order of Maybe to Either to List though.