Reverse Second Half of a List
Asked at Amazon · Coding Questions · Difficulty: Easy
Given a list, reverse the portion starting at the middle index (`len // 2`) to the end, keeping the front unchanged. Return the resulting list.
Loading the problem…
Asked at Amazon · Coding Questions · Difficulty: Easy
Given a list, reverse the portion starting at the middle index (`len // 2`) to the end, keeping the front unchanged. Return the resulting list.
Loading the problem…