Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content

Alternative solution using Set

Raúl Fiol

Mar 26, 2025

1

22

0

Mar 26, 2025

[JS] Why not create a set and compare the size to the array.length?

mil o

Dec 16, 2024

1

50

2

Jul 9, 2025

Approach 2: Using Hash Set - why is X added into unique_set?

AnonymousJeana

Nov 26, 2024

0

20

1

Nov 26, 2024

Callout optimal solution

Zachary Nelson

Oct 16, 2024

1

34

0

Oct 26, 2024

set.count(x) - java

raol buqi

Aug 29, 2024

0

12

1

Sep 22, 2024

"Count" method on sets does not make sense

Abhijit Gupta

Jul 27, 2024

1

25

0

Aug 5, 2024

Approach 2, Time complexity

Anonymous

Jul 18, 2024

0

28

1

Jul 19, 2024

Approach 2 - Wording Issue

ethanedge

Mar 8, 2024

0

32

0

Mar 8, 2024

a better approach i think (not using set())

AnonymousCalvin

Feb 6, 2024

0

76

1

Jul 19, 2024

Approach 2

Eslam Hossam

Oct 17, 2023

0

48

1

Oct 20, 2023

What if we need to use O(1) space and O(N) time is it possible?

himanshu1495

Oct 11, 2023

0

57

1

Jul 19, 2024

A better concise solution

Aye Ess

May 2, 2023

5

184

3

Apr 19, 2024

Space and Time Complexity

Rohi Anon

Apr 30, 2023

0

101

1

Jan 14, 2024