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

0% completed

Vote For New Content

I don't think that checking the None's at the end of the isPalindrome are neccessary

Michał Sabiniarz

Sep 15, 2024

0

23

0

Sep 15, 2024

Update problem description constraint

Ricardo Estrada

Aug 15, 2024

0

43

0

Aug 15, 2024

My solution

Mohammed Dh Abbas

Jul 4, 2024

0

29

0

Jul 4, 2024

I think there is a slightly simpler solution (again I feel the official solution code adds extra confusion)

adi berkowitz

Jun 18, 2024

0

78

0

Jun 18, 2024

Solution should be different for odd and even length

Aditya Verma

Nov 13, 2023

1

71

0

May 18, 2024

Simplest soluiton using recursion

Santosh Vaza

Aug 5, 2023

0

64

2

Apr 25, 2024

No need to check head != null (refer to the attached image)because in 1st case (...

Santosh Vaza

Oct 9, 2022

2

59

0

Jul 4, 2024

The second half becomes its own linked list and the reverse back at the end does...

Thilak G

Apr 21, 2022

1

104

1

Mar 5, 2025

This does not look like it reverts the head to its original form.For input [1,2,...

Avinash Agarwal

Mar 15, 2022

1

85

2

Apr 21, 2022