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 ▸

Some problems are intractable. What does it mean for a problem to be described as intractable?


What is the difference between simplex, half duplex and full duplex?


What is the time complexity of Bubble Sort?


Describe what is meant by a modular design and state on advantage of a modular design.