package Ġcom . github . sh mv anh out en . ad vent of code . day 1 3 Ċ Ċ import Ġcom . github . sh mv anh out en . ad vent of code . day 2 2 grid computing . Coordinate Ċ Ċ class ĠPaths For Favorite Number Finder ( private Ġval Ġm aze Builder : ĠM aze Builder Ġ= ĠM aze Builder (), Ġprivate Ġval Ġpath Finder : ĠPath Finder Ġ= ĠPath Finder ()) Ġ{ ĊĊĠĠĠ Ġfun Ġfind Quick est Path For Coordinate ( number To Draw M aze : ĠInt , Ġtarget Coordinate : ĠCoordinate ): ĠSet < Coordinate >? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġm aze Ġ= Ġm aze Builder . build ( number To Draw M aze ) ĊĊĠĠĠĠĠĠĠ Ġval Ġpaths To Vis ited Nodes Ġ= Ġpath Finder . get Paths To Vis ited Nodes ( ma ze ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġpaths To Vis ited Nodes . find Ġ{ Ġit . coordinate Ġ== Ġtarget Coordinate Ġ} ?. short est Path ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcount How Many Coordinates Take LessThan 5 0 Steps ( number To Draw M aze : ĠInt ): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġm aze Ġ= Ġm aze Builder . build ( number To Draw M aze ) ĊĊĠĠĠĠĠĠĠ Ġval Ġpaths To Vis ited Nodes Ġ= Ġpath Finder . get Paths To Vis ited Nodes ( ma ze ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġpaths To Vis ited Nodes . count Ġ{ Ġit . short est Path . size Ġ<= Ġ 5 0 Ġ} ĊĠĠĠ Ġ} Ċ }