Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
This solution breaks for [1,2,3,4,5]3

Shan

Aug 2, 2022

This solution breaks for

[1,2,3,4,5] 3

0

0

Comments
Comments
Design Gurus
Design Gurus3 years ago

You probably missed this thing:

If, in the end, you are left with a sub-list with less than ‘k’ elements, reverse it too.