• + 3 comments

    Let's say k = 4 and i = 2, you should exclude such case because you cannot add more than one element with the remainder of 2