Question 3

5

1 votes
Very-Easy
Problem

Solve question (1) with the condition that the integer k should never move more than one position in a single move anytime during the execution of the search. If you need to move k more than one step, it will count multiple moves. Here k is given as an additional last input.

Time Limit: 10
Memory Limit: 256
Source Limit:
Editor Image

?