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 ▸

Describe a stack data structure.


Explain why it is important to check the email address with JavaScript and again when it reaches the server.


A common construct found in many algorithms is a loop. Using pseudocode, write a pre-condition loop to output all of the even numbers between 99 and 201.


Choose 3 types of malware, describe them and the ways in which they may harm a device.