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

0% completed

Vote For New Content

Why there isn't written which solution is best?

lejafilip

Sep 6, 2024

0

18

0

Sep 6, 2024

Space complexity of DFS solution might be incorrectly given

Anand Mohan

Aug 27, 2023

0

67

3

Jan 30, 2025

To clarify the space complexity of BFS traversal of a matrix:When you start trav...

Mike Xu

Feb 11, 2023

1

73

0

Jul 12, 2023

Hi , pls anyone share BFS code in C#.

sweetykumari

Jan 30, 2023

0

14

0

Jan 30, 2023

When can BFS be useful? For me, it looks like a more complicated version of DFS.

evmorov

Jan 25, 2023

0

55

2

Apr 19, 2025

Introduction/Solution lacks additional explanation. Why use DFS/BFS? What is the...

Smoke

Dec 15, 2022

9

59

0

Oct 6, 2024

can someone please explain what does this do and why are we doing this? Queue ne...

Manthan

Dec 13, 2022

0

35

1

Dec 14, 2022

Why is it that the BFS solution has a space complexity of O(min(M, N))? Why does...

Runyao Fan

Aug 21, 2022

3

72

7

Mar 5, 2024

Is there a specific reason why you used neighbors.extend() for a deque rather th...

Richard Yuan

Aug 5, 2022

0

26

3

Aug 13, 2022

Why space complexity for BFS is min (M*N) ? what does it even mean?

Mikhail Putilov

Jul 28, 2022

5

54

3

Jun 6, 2023

Hello

Sheen Goh

Jul 26, 2022

0

16

0

Jan 25, 2023

On this page

Problem Statement

Try it yourself