Open In App

Microsoft Interview Question for Internship

Improve
Improve
Like Article
Like
Save
Share
Report

Round 1- Coding round

You are given a matrix nxm filled with integers. There is a robot which has to travel from the cell (1,1) to cell (n,m) and the robot can move only one cell to the right or downwards. The robot requires strength to travel from one cell to another. He can only move forward if his strength is positive. When he moves to a cell , the cell value is added to his strength(value can be negative or positive). Calculate the minimum strength you have to give to the robot initially so that he can make it to the last cell.


Last Updated : 09 Mar, 2016
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads