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

0% completed

Vote For New Content

My solution

Mohammed Dh Abbas

Sep 24, 2024

0

21

0

Sep 24, 2024

I did not sort the input array, but submission succeeded.

ahonliu

Jul 12, 2024

0

31

3

Sep 26, 2024

We should take into account the time needed to sort the array in the over all ti...

LeetCoder

Jul 24, 2022

1

32

1

May 2, 2024

For example 2, when we sort the input, the results produced are not exactly the ...

Gary

Apr 7, 2022

2

35

1

Aug 22, 2024

Nitpick: sorting the array takes O(N*logN) time - can't we keep a hash of previo...

hj3yoo

Mar 3, 2022

1

63

2

Dec 10, 2022