Skip to content

Instantly share code, notes, and snippets.

@ajaybgupta
Created November 27, 2017 05:38
Show Gist options
  • Save ajaybgupta/13e8720c6118091519641151b14cfc4c to your computer and use it in GitHub Desktop.
Save ajaybgupta/13e8720c6118091519641151b14cfc4c to your computer and use it in GitHub Desktop.
// 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