You are viewing a single comment's thread. Return to all comments →
Sunil scala solution def f(arr:List[Int]):Int = arr.foldLeft(0){(c,_)=>c+1}
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 →
Sunil scala solution def f(arr:List[Int]):Int = arr.foldLeft(0){(c,_)=>c+1}