Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content

Why is [] in the test case if the constraint is 1 <= arr.length <= 10^5

Hoang Le

Sep 20, 2024

0

5

0

Sep 20, 2024

Why we use maxLength?

Abdullah AlKheshen

Jun 15, 2023

0

19

1

Aug 17, 2023

I am confused why the algorithm is O(N) running time if there is a for loop and ...

Keila Mohan

Jan 21, 2023

0

44

2

Sep 13, 2025

The solution I came up with just uses a HashSet. public static int getFruitCount...

K Curtis

Dec 26, 2022

0

24

0

Dec 26, 2022

I found the map solution a bit hard to follow. Here is an alternative if it help...

Jeff Goyette

Nov 10, 2022

0

21

1

Nov 12, 2022

Why is Space Complexity for the fruit basket not O(K) like the parent problem? I...

ag

Sep 6, 2022

0

9

1

Sep 29, 2022

I'm wondering: do we really need the while loop to check if the `fruitFrequencyM...

manulorenzop@gmail.com

Jul 11, 2022

0

15

1

Jul 14, 2022

Similar to my comment on previous problem, I am unable to understand why we need...

Sukumar

Jun 30, 2022

0

16

0

Nov 10, 2022

Hi. Wondering how to deduce that "Fruits into Baskets" is sliding window pattern...

CS

Oct 6, 2021

0

21

1

Nov 4, 2022