Scala Problems Algo No 9 YouTube
99 Scala Problems Index By Leonardo Giordani - 07/04/2015 Updated on Feb 28, 2019 Programming Scala functional programming Share on: Twitter LinkedIn HackerNews Email Reddit I decided to learn Scala. This repository provides some solution to the 99 scala problems. See: http://aperiodic.net/phil/scala/s-99/ P01 (*) Find the last element of a list Example: scala> last (List (1, 1, 2, 3, 5, 8)) res0: Int = 8 blue-print solution P02 (*) Find the last but one element of a list. Example: scala> penultimate (List (1, 1, 2, 3, 5, 8)) res0: Int = 5 Problems marked with two asterisks () are of intermediate difficulty. If you are a skilled Scala programmer it shouldn't take you more than 30-90 minutes to solve them. Problems marked with three asterisks () are more difficult. You may need more time (i.e. a few hours or more) to find a good solution. The problems have different levels of difficulty. Those marked with a single asterisk (*) are easy. If you have successfully solved the preceeding problems you should be able to solve them within a few (say 15) minutes. Problems marked with two asterisks (**) are of intermediate difficulty.99 Problems sheet music for voice, piano or guitar (PDF)
99-scala-problems Solutions and tests for Phil Gold's S-99: Ninety-Nine Scala Problems. Table of Contents Lists Arithmetic Logic and Codes Binary Trees Multiway Trees Graphs Miscellaneous Lists P01 (*) Find the last element of a list. scala > last ( List ( 1, 1, 2, 3, 5, 8 )) res0: Int = 8 P02 (*) Find the last but one element of a list. A series of Scala-focused programming problems. Adapted from Werner Hett's Ninety-Nine Prolog Problems.. S-99: Ninety-Nine Scala Problems. 2 Annual 2009, upgraded 10 Feb 2023. Table concerning Contents. Working is tabbed. P01 (*) Find the continue element out a list. P02 (*) Find the previous however one element by a list. You can also usesbt test
from the command-line but\nthat's longer since the JVM has to be started everytime.\nUse test-only org.p99.scala.P00Spec
to test only the problem 00
.