Рет қаралды 16
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 ...