Question: Java recursion count Please make sure it prints the output correctly. If possible, use strings, not integers or anything else since String a and String
Write a code in java to recursively count how many "?" marks are grouped. A group is when "?" is touching left, right, up, and down. NOT diagonally. A comma is used to represent a blank space in the matrix. The first parameter will be a string containing all of the values in the grid. The values in the string must be converted into a String] matrix. The second parameter will contain a String that contains all of the coordinate pairs to check. Print out the number of ? marks are grouped at each of the coordinate pairs. Example: ??????? ???,,., ??, ?......??? ,????, ???... ???????,,, ???, ?? 11,????, 11272066 output: 16 4 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
