leetcode-rust icon indicating copy to clipboard operation
leetcode-rust copied to clipboard

Change End value as the code fails the test case where the array contains one value

Open ByteSudoer opened this issue 3 years ago • 0 comments

The input:

  • The array: [2]
  • the value: 3
  • the output: [ ] (testcase failed)
  • The expected output: [2] (as the array only contains one value "2" which is different from "3")

ByteSudoer avatar Aug 12 '22 19:08 ByteSudoer