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 ▸

When data is transmitted over long distances, latency can become an issue. Explain what latency is.


What the main differences between an interpreter and a compiler?


Convert the hexadecimal '3E', which represents a 2's compliment binary number, in decimal.


Explain what is meant by the term ‘TCP/IP stack’ [3]