mirror of https://github.com/01-edu/public.git
docs(secondhalf): clarify behavior for edge cases of odd arrays
This commit is contained in:
parent
027eb2f859
commit
774267e6f4
|
@ -4,7 +4,7 @@
|
|||
|
||||
Write a function `SecondHalf()` that receives a slice of `int` and returns another slice of `int` with the second half of the values.
|
||||
|
||||
- If the length is odd, round it up.
|
||||
> If the length is odd, include the middle value in the result.
|
||||
|
||||
### Expected function
|
||||
|
||||
|
|
Loading…
Reference in New Issue