Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update 704-Binary-Search.kt
  • Loading branch information
edo-ce authored Jul 21, 2022
commit 869a59a70dca9ea5816e5ef808531d433f4b9967
8 changes: 0 additions & 8 deletions kotlin/704-Binary-Search.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
class Solution {
// Easy solution
/*
fun search(nums: IntArray, target: Int): Int {
return nums.indexOf(target)
}
*/

// Recursive solution
fun search(nums: IntArray, target: Int): Int {
return searchAux(nums, target, 0, nums.size - 1)
}
Expand Down