From 774267e6f48e988bf5ff1c4a4f5054121f77d0fa Mon Sep 17 00:00:00 2001 From: Michele Sessa Date: Tue, 20 Jun 2023 12:32:33 +0100 Subject: [PATCH] docs(secondhalf): clarify behavior for edge cases of odd arrays --- subjects/secondhalf/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/secondhalf/README.md b/subjects/secondhalf/README.md index ee2d62868..093ee8ea5 100644 --- a/subjects/secondhalf/README.md +++ b/subjects/secondhalf/README.md @@ -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