Microsoft Interview Question for Internship
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.
Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!
Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.