Cracking the Coding Interview: Check if String is Palindrome | Interview Question | Python

preview_player
Показать описание
DON'T FORGET TO LIKE AND SUBSCRIBE! :)

We will solve a problem which is commonly asked in Beginner to Intermediate level Programming Interviews.

We will solve the problem using Python.

The problem is to write a function to check if a given string is a palindrome or not:

We will solve using two approaches:
1: Using a variable and making the copy of the given string.
2: By slicing, reversing and iterating over the string and without making the copy of the given string.
Рекомендации по теме
visit shbcf.ru