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 3796d6d commit 9e50398Copy full SHA for 9e50398
src/scala/BinarySearch.scala
@@ -19,7 +19,7 @@ def binarySearch(data: Seq[Int], target: Int): Option[Int] = {
19
20
object Main extends App {
21
val data: Seq[Int] = Seq(0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12)
22
- val value: Int = 11
+ val value: Int = 11
23
println(
24
s"Value '$value' found in position '${binarySearch(data, value).get}'"
25
)
0 commit comments