Created
November 27, 2017 05:38
-
-
Save ajaybgupta/13e8720c6118091519641151b14cfc4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// object Solution{ | |
object HackerRankIO { | |
def main(args: Array[String]) { | |
val inputStringList = io.Source.stdin.getLines().take(2).toList | |
println(solveMeFirst(inputStringList)) | |
} | |
def solveMeFirst(intString:List[String]):Int={ | |
intString.map(_.toInt).sum | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment