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

0% completed

Vote For New Content

A different and easier approach in O(N) Time complexity

Sahil Kumar

Jul 10, 2025

0

22

1

Jul 10, 2025

Double pointer approach is an overkill here

Denys Stopkin

Jul 2, 2025

0

21

0

Jul 2, 2025

Incorrect constraints?

Pavel Fateev

May 27, 2025

0

8

0

May 27, 2025

backspace variable

venkata sreekanth bhagavatula

Apr 14, 2025

0

10

0

Apr 14, 2025

code

Divya siddam

Mar 28, 2025

0

8

0

Mar 28, 2025

Confusion with last input

kr.behrman

Aug 27, 2023

1

82

3

Aug 2, 2024

If the space complexity is not an issue this can be solved more easily by using stacks

Arturo Calderón

Aug 14, 2023

8

105

0

Jun 8, 2025

Couldn't this be done in O(N) where N is the length of the bigger string?

Ike Nwankwo

Mar 8, 2023

0

84

1

Aug 10, 2023

regarding this line of code "if i1 < 0 and i2 < 0: # reached the end of both th...

Lemon Ruan

Jul 14, 2022

0

67

5

Jul 22, 2024