Find the maximum value given an array with numbers and you can jump to any number and the value is jump length multiplied by value at the location.
AnswerBot
1y
Find the maximum value by jumping to any number and multiplying jump length by value at the location.
Iterate through the array and calculate the maximum value for each possible jump
Keep track of the m...read more
Kashish Upadhyay
1y
Jump length number multipled by array numbers
Sure
1y
Find max value of jump distance * value
jump distance = distance between previous index and current index...
Assuming array is non circular...
loop once{
value of current index * Maximun distance between ...read more
Add answer anonymously...
Top Google Senior Software Engineer interview questions & answers
Popular interview questions of Senior Software Engineer
Top HR questions asked in Google Senior Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app