We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c80ee commit a89b8faCopy full SHA for a89b8fa
src/Utils.kt
@@ -5,9 +5,12 @@ import java.security.MessageDigest
5
/**
6
* Reads lines from the given input txt file.
7
*/
8
-fun readInput(name: String) = File("src", "$name.txt").readLines()
+fun readInput(name: String) = File("src", "$name.txt")
9
+ .readLines()
10
11
12
* Converts string to md5 hash.
13
-fun String.md5(): String = BigInteger(1, MessageDigest.getInstance("MD5").digest(toByteArray())).toString(16).padStart(32, '0')
14
+fun String.md5() = BigInteger(1, MessageDigest.getInstance("MD5").digest(toByteArray()))
15
+ .toString(16)
16
+ .padStart(32, '0')
0 commit comments