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 ▸

What is the difference between CISC and RISC?


Represent the denary number 5.625 as an unsigned binary fixed point number with three bits before and five bits after the binary point.


Describe a queue data structure.


Image a graph. In which instances is it more appropriate to use an adjacency list instead of an adjacency matrix?