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

0% completed

Vote For New Content

Maybe not as clean but more space efficient?

krishi87

Feb 24, 2025

1

7

0

Nov 3, 2025

In the visual representation of the algorithm for the answer, the number 4 repeats twice.

Marie Arroyo

Jan 9, 2025

0

11

0

Jan 9, 2025

Solution without splitting. this is more proper

Mohammed Dh Abbas

Jul 26, 2024

0

63

0

Jul 26, 2024

I didn't pay enough attention to the description so I though it's required to use only stack operations, without any splitting processing char by char

Renat Zamaletdinov

Feb 15, 2024

3

70

0

Aug 11, 2024

Use an ArrayDeque so that the code leverages modern Java API

Davide Pugliese

Feb 13, 2024

0

29

0

Feb 13, 2024

Creating a string part uses FIFO instead of LIFO

Yan Pomanitskiy (Pliant GmbH)

Feb 7, 2024

5

52

2

Oct 22, 2024

Using stack as array is cheating :P

Maharshi Jinandra

Jan 6, 2024

0

97

0

Jan 6, 2024