We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b647c5 commit b8a37d4Copy full SHA for b8a37d4
Search/BinarySearch/Kotlin/binarySearch.kt
@@ -0,0 +1,6 @@
1
+fun main(args: Array<String>) {
2
+ val data = listOf(2, 7, 90, 6, 54, 8, 34, 16)
3
+ val x = 16
4
+
5
+ println(data.sorted().binarySearch(16))
6
+}
0 commit comments