1 works with 2,3,4,5
2 works with 7,8
matrix - n x n search horiz, vert, diag
whenever you visit a location, and then visit a connected location, you do not want to revisit the old as you continue to find adjacent cells
FINAL: can only be assigned once
getOrDefault(Object key, V defaultValue) Returns the value to which the specified key is mapped
2 works with 7,8
matrix - n x n search horiz, vert, diag
whenever you visit a location, and then visit a connected location, you do not want to revisit the old as you continue to find adjacent cells
FINAL: can only be assigned once
getOrDefault(Object key, V defaultValue) Returns the value to which the specified key is mapped
Comments
Post a Comment