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
Answered by Charles V. Computing tutor

1712 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

What is Reverse Polish Notation?


Given an unlimited number of light bulbs (that break at a certain height), and a building with 100 floors, how do you determine the height that the light bulb breaks?


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


Describe the operations of an optical disk drive used to read data from an optical disk, such as a CD or DVD.


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences