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 b8a37d4 commit 752e01eCopy full SHA for 752e01e
Search/BinarySearch/Kotlin/binarySearch.kt
@@ -2,5 +2,5 @@ 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))
+ println(data.sorted().binarySearch(x))
6
}
0 commit comments