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 23, 2024
1 parent 3796d6d commit 9e50398
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,7 +19,7 @@ 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}'"
)
Expand Down

0 comments on commit 9e50398

Please sign in to comment.