Urgent Scala task


Write a function that takes a list of integers as argument and calculates how you can 'jump' in this list. Take for example the list

List(4, 0, 4, 0, 1, 0, 2,1)

The integers stand for how many "steps" you can jump forward. The first 4, for example, means you can jump to one of the next 4 elements, that is 0, 4, 0 and 1. If you land on a field that contains 0, then you are stuck, or cannot jump any further. If you land on a field with a 1, you can jump only to the next field. If on 2 you can jump to the next field or the one after that. I guess you get the idea.

The point is can you calculate for any list how many jumps you need minimally to jump to the end of the list. I think for the list above you need at least three jumps 4 => 4 => 2 => end-of-list . This should be a nice search problem which you can implement as recursive function.


Skills: Golang, Java, Javascript, Scala, Spark

See more: monix cats, monix task, cats task, monix task to future, scala monix, monix task github, scalaz task, monix tutorial, urgent wp task, urgent small task of indexing, urgent need small task, urgent - small task of indexing, urgent task essay, task write program java graphical user interface calculate display mortgage payment amount user input amount mortgage term mortg, task urgent, pdf excel urgent task, urgent logo task, post reading task, javascript task, aspnet google calculate distance

About the Employer:
( 370 reviews ) Mutrah, Oman

Project ID: #16652897

10 freelancers are bidding on average $28 for this job


Hy I am software engineer and have completed many programming projects. Feel free to contact with me. Thank you

$70 USD in 10 days
(49 Reviews)
$50 USD in 10 days
(21 Reviews)

Greetings, I am looking forward to doing this project as Scala and functional programming paradigm are my passion. Looking forward to hearing from you. Kind regards, Sava

$55 USD in 3 days
(5 Reviews)

Hello Sir, I am Nikunj Prajapati. Having several years experience in the industry, I strongly believe I can make a significant contribution to requirement. If given the chance, I am confident that I could meet yo More

$10 USD in 3 days
(4 Reviews)

Hello Sir, Your project interests me. I will be available to participate in its realization. for more information contact me Zakariaa BENSLIMANE

$10 USD in 1 day
(7 Reviews)

i understand your program .i think this is 2 hour [login to view URL] you agree contact me in private chat i will complete this in 2 hour.

$20 USD in 1 day
(3 Reviews)

Hello i am an expert at data structures and algorithms. i can do this task very easily. i hope i will get a chance to show you my skills

$10 USD in 1 day
(1 Review)

Hi, I have code for this project/problem available in Java language already. I can submit you the code immediately if I am awarded the project. Also, I have bid at a very low price. After submitting the work, if you ar More

$15 USD in 0 days
(0 Reviews)

I have the code and it works. I can send immediately if you accept my bid. Thank you. I need 5 characters to finish the proposal.

$20 USD in 0 days
(0 Reviews)
$17 USD in 7 days
(0 Reviews)