We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb3c80ee commita89b8faCopy 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
-funreadInput(name:String)=File("src","$name.txt").readLines()
+funreadInput(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')