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

0% completed

Vote For New Content

Better be explicit and check start<end before swapping

Naveen Kumar

Aug 6, 2025

1

5

0

Oct 29, 2025

Simpler algorithm with one loop, and set

Vini Neto

Oct 3, 2024

1

63

0

Jul 3, 2025

Used a stack in python

Nabeel Keblawi

Sep 4, 2024

1

28

0

Feb 24, 2025

Dont need to convert string to array, reduce the space complexity to O(1)

Dang Khoa Tran

Jul 31, 2024

1

52

0

Sep 13, 2024

Code is wrong

Ashutosh Tiwari

Jul 24, 2024

0

35

0

Oct 29, 2025

Easier to understand than provided solution

Luis Roel

Aug 11, 2023

0

112

1

Aug 11, 2023

my solution ( i believe this is an O(N) time complexity solution ) not sure on space complexity

nikita michaelson

Jul 5, 2023

2

77

3

Sep 17, 2025

Improve python solution with hashset

Victor An

May 17, 2023

1

81

1

Jul 19, 2024