Skip to content

Commit

Permalink
Try to fix BinarySearch.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvins committed Oct 21, 2024
1 parent 22742fb commit f9ed5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scala/BinarySearch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def binarySearch(data: Seq[Int], target: Int): Option[Int] = {

object Main extends App {
val data: Seq[Int] = Seq(0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12)
val value: Int = 11
val value: Int = 11
println(s"Value '$value' found in position '${binarySearch(data, value).get}'")
}

0 comments on commit f9ed5e9

Please sign in to comment.