Мін.

Given a [!scala]List[Int][/!][!java|python]recursive list[/!], return the smallest of its values. You will probably need an extra function, even if you can assume that the list is not empty.

Your solution should be linear in time.