← Back to challenges

Checking Palindrome String Using Stack

PythonHardalgorithmsdata_structuresvalidation

Instructions

Create a function that takes a string and checks if it's a palindrome using Stack. The stack class is created for you.

Examples

is_palindrome("radar") ➞ True

is_palindrome("utsab") ➞ False

is_palindrome("kayak") ➞ True

Notes

Input is always a valid word.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.