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.
2 parents d575370 + b5c0e1f commit 594ad08Copy full SHA for 594ad08
src/scala/BinarySearch.scala
@@ -20,5 +20,7 @@ def binarySearch(data: Seq[Int], target: Int): Option[Int] = {
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
23
- println(s"Value '$value' found in position '${binarySearch(data, value).get}'")
+ println(
24
+ s"Value '$value' found in position '${binarySearch(data, value).get}'"
25
+ )
26
}
0 commit comments