00:01
All right, so this question is saying that we're given some palindrome, and what a palindrome is, is it something that reads the same forwards and backwards.
00:11
And we want to check if something's a palindrome or not.
00:14
So we're just going to do this very simply in python pseudocode, but you can frame the problem very similarly in other languages.
00:24
So basically, let's say we have one, two, three, two, one.
00:28
To check if this is a palindrome, the basic idea is we want to check if the first and last element are the same.
00:36
We want to check if the second and fourth elements are the same.
00:43
And we want to check the middle element we don't have to worry about.
00:48
So here's what i'm going to do...