Solving hackerrank FP problems using Scala
If you're using these codes, please don't blindly copy them in hackerrank.
I am providing the input of these snippets using the file resource (input.txt
).
- Clone this repo
- Import it as a Scala project in IDE
- Copy the sample input in hackerrank question to
input.txt
-
Copy the code to hackerrank editor.
-
Change input to stdin
io.Source.stdin