Closed

Urgent Scala task

Dear,

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.

Thanks,

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

About the Employer:
( 369 reviews ) Mutrah, Oman

Project ID: #16652897

11 freelancers are bidding on average $27 for this job

iridescent2x15

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

$70 USD in 10 days
(48 Reviews)
5.7
$50 USD in 10 days
(19 Reviews)
4.7
WingsOfIcarus

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
(3 Reviews)
3.2
Corameleviv

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
(6 Reviews)
2.6
nikunjap

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
(2 Reviews)
2.8
adifreelancing

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)
0.5
Hasham241

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
(2 Reviews)
0.7
aashish0029

Hello, the problem statement looks like it could be done using dp approach. I have experience for both java and scala. Please let me know if you need some help.

$25 USD in 1 day
(0 Reviews)
0.0
vw7150118vw

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)
0.0
alpersim94

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)
0.0
$17 USD in 7 days
(0 Reviews)
0.0