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...
Google Senior Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
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

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter