Tag Archive
nesting
Discover 1 story with “nesting” Tag.

I've been having some fun doing Codility exercises now that they have Scala support. Here's my solution for their Nesting exercise. object Solution { def solution(S: String): Int = { val results = S.foldLeft(0) { (total, chr) => if (total < 0
Read More