You are viewing a single comment's thread. Return to all comments →
Another solution on Scala
def f(arr:List[Int]):Int = arr match { case Nil => 0 case x::xs => 1 + f(xs) }
Seems like cookies are disabled on this browser, please enable them to open this website
List Length
You are viewing a single comment's thread. Return to all comments →
Another solution on Scala