Skip to content

Commit

Permalink
fixed testcase of optimised twoSum solution
Browse files Browse the repository at this point in the history
  • Loading branch information
joltedThought committed Jan 5, 2024
1 parent da50b10 commit 43899ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/kotlin/math/TwoSum.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TwoSumTest {
array[0] = 3
array[1] = 3
val target = 6
val result = intArrayOf(0,1)
assert(twoSum(array,target).contentEquals(result))
val result = intArrayOf(3,3)
assert(twoSumOptimised(array,target).contentEquals(result))
}
}

0 comments on commit 43899ca

Please sign in to comment.