Print the maximum in the given range and jump || Adobe

Posted
16 Jun 2025
321 reads

Summary

I encountered a Data Structures & Algorithms problem during an interview at Adobe, which involved finding the maximum jumps to reach the end of an array.

How it went

You have been given an array and you are at index 0.

print the maximum jumps too reach the end

Ex: - [2, 3, 1, 1, 4] -> 2->3->4
Ex: - [5, 1, 1, 4, 2, 2, 1]-> 5->4->1

TC: - O(N)
sc: - O(N) for vector

Questions asked (1)

  1. 01

    Maximum Jumps to Reach End of Array

    Data Structures & Algorithms · Medium

    You have been given an array and you are at index 0.

    print the maximum jumps too reach the end

    Ex: - [2, 3, 1, 1, 4] -> 2->3->4
    Ex: - [5, 1, 1, 4, 2, 2, 1]-> 5->4->1

    TC: - O(N)
    sc: - O(N) for vector

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Adobe recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!