Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Do we really need the "B" append?

shukl034

Jun 24, 2023

Trying to think of scenarios where the B append could make the difference

0

0

Comments
Comments
M
Mikhail Putilov2 years ago

No, we don't

I think that's just piece of code that follows the mental model of the author, but it does not impact the result at all

Here is my solution that does not require it:

public static int findDistinctIslandsDFS(int[][] grid) { var set = n...

On this page