• + 0 comments

    Do not call p.length every recursion!!! :)

    With use of List everything is fine in Scala solution.