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

0% completed

Vote For New Content

least amount of code

kfaham

Aug 30, 2025

0

2

0

Aug 30, 2025

Solution without visited array / DFS non recursive

Mohammed Dh Abbas

Jun 3, 2024

0

13

0

Jun 3, 2024

Can we add a follow up to this question where we allow reflections and rotations? Distinct Islands 2 on Leetcode

Silencer312

Mar 14, 2024

0

23

0

Mar 14, 2024

More fun version (to me anyway)

Lee

Mar 6, 2024

0

18

0

Mar 6, 2024

Do we really need the "B" append?

shukl034

Jun 24, 2023

0

50

1

Aug 20, 2023

Much like one of the earlier questions. A matrix isn't required to keep track of...

CaptainKidd

Dec 15, 2022

0

35

1

Dec 15, 2022

Share a BFS version```from typing import Listfrom collections import dequeclass ...

Victor An

Nov 21, 2022

0

14

0

Nov 21, 2022

islandTraversal += "B"; // back why is this necessary?

Dhruba Jyoti Nath

Aug 4, 2022

6

57

1

Mar 31, 2024

islandTraversal += "B"; // back why is this necessary?

Dhruba Jyoti Nath

Aug 4, 2022

0

23

1

Nov 21, 2022

On this page