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 ▸

Why are bit patterns often displayed in hexadecimal notation instead of binary notation?


Explain how the fetch execute cycle works? Include the specific registers and buses being used


What is the difference between validation and verification?


why is the Harvard architecture is sometimes used in preference to the von Neumann architecture and give examples of each system