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 22742fb commit f9ed5e9Copy full SHA for f9ed5e9
src/scala/BinarySearch.scala
@@ -19,6 +19,6 @@ 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(s"Value '$value' found in position '${binarySearch(data, value).get}'")
24
}
0 commit comments