Maximum number of items robot can pick in k steps from a row | Sliding Window | DSA Interview Ques*

Описание к видео Maximum number of items robot can pick in k steps from a row | Sliding Window | DSA Interview Ques*

In this video I have discussed about DSA Question with multiple Approaches with code example
Q. Calculates the maximum number of items the robot can pick in exactly k steps from a row.
The robot can move left or right in each step. Given Robot position, k steps & items position array,
Input: Items = items[] = {9,0,0,0,1,7,2,4,0,0,9}, startPos = 5, k = 4

Comment if you need Complete Code link ...

Комментарии

Информация по комментариям в разработке