Skip to content

Commit b8a37d4

Browse files
authored
Create binarySearch.kt
1 parent 8b647c5 commit b8a37d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)