subject

In java, create programe that find shortest steps to reach maximum gold (only right and down move) and print path. start from [0][0] in the top conner while avoiding steps the 'T' trap. Hint: using brute force search and dynamic programing
So here is the char[][] Mapp

Input is 2d array matrix:

char[][] MapGnomes = {
{'.', 'T', '.', '.', 'T', },
{'.', '1', '3', '.', '.', },
{'2', 'T', '.', '4', 'T', },
{'.', '.', '3', '.', '6', },
{'4', '.', '.', '.', 'T', },
{'4', 'T', '4', '3', '2', },
{'3', 'T', '.', '.', 'T', },
};

And output:

maximum gold is: 16.

Steps to reach maximum gold is: 10.

Path to reach maximum gold is: DDR.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
You know the right answer?
In java, create programe that find shortest steps to reach maximum gold (only right and down move) a...
Questions
question
History, 03.12.2020 03:20
question
Mathematics, 03.12.2020 03:20
question
Mathematics, 03.12.2020 03:20
question
Mathematics, 03.12.2020 03:20
question
Mathematics, 03.12.2020 03:20
Questions on the website: 13722362