Write a function in pseudocode that determines if a given string is a palindrome

Declare and Initiate a new empty stringTraverse the given string using a loopTake each char from the given string and concatenate it to the beginning of the new stringCompare the final new string with the given string
This could look like:String str;for each char in str;{str = char + str;}if str == given then true else false;

CV

Related Computing A Level answers

All answers ▸

How to manually convert a number from decimal into binary?


Describe the operations of an optical disk drive used to read data from an optical disk, such as a CD or DVD.


What is the denary equivalent of the hexadecimal number A7?


What the main differences between an interpreter and a compiler?