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;

Answered by Charles V. Computing tutor

1549 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

Write pseudocode for the binary search algorithm and state, with an explanation, it's worst case complexity in big-O notation


Describe the 4 layers of the TCP/IP model


What is an ALU?


What is an Algorithm?


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences