Saloni6111 / DSA_Problems

Solve given DSA problems here for hactoberfest.
MIT License
31 stars 103 forks source link

Jump Game (Dynamic Programming) #136

Closed yeshwanth-ds closed 1 month ago

yeshwanth-ds commented 1 month ago

The "Jump Game" problem involves determining if you can reach the last index of an integer array, where each element indicates the maximum jump length from that position. This problem can be solved using Greedy algorithms by maintaining a variable to track the farthest reachable index as you iterate through the array. If at any point the current index exceeds the farthest reachable index, return false. "Dynamic Programming" can also be applied by storing results in an array to avoid recalculating reachable states. Ultimately, the solution ensures efficient traversal through the input array, adhering to the constraints provided. I would solve this problem in Java.

I would like you to assign this problem with the tag Hacktoberfest 2024

Saloni6111 commented 1 month ago

The "Jump Game" problem involves determining if you can reach the last index of an integer array, where each element indicates the maximum jump length from that position. This problem can be solved using Greedy algorithms by maintaining a variable to track the farthest reachable index as you iterate through the array. If at any point the current index exceeds the farthest reachable index, return false. "Dynamic Programming" can also be applied by storing results in an array to avoid recalculating reachable states. Ultimately, the solution ensures efficient traversal through the input array, adhering to the constraints provided. I would solve this problem in Java.

I would like you to assign this problem with the tag Hacktoberfest 2024

@yeshwanth-ds Sure, it's already assigned to you. Please go ahead!

Utkarsh-Aggarwal commented 1 month ago

hi i am a second year student , paving my way into open source can please assign this issue to me @Saloni6111