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

1142 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

What is meant by the term spooling? Give an example of when it can be used.


What are the different development methodologies and what are their advantages and disadvantages?


Simplify the boolean expression ¬(A.B)+A.


Given a graph with n nodes and m edges, every edge has a passing cost that can be negative, find the minimum distance between node 1 and every other node


We're here to help

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

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy