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 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
What is the process in which the software development team compiles information to determine the final product
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Match the following. 1. formatting that is applied when cell data meets certain criteria 2. borders with formats not found on the border tool 3. a shortcut bar that contains tools for commonly used formats 4. formats that can be applied to numbers conditional formatting custom borders format bar number formats
Answers: 3
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
Mathematics, 19.07.2019 01:10