Task #2. Palindrome A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Task #2. Palindrome A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar

Post by answerhappygod »

Task #2. PalindromeA palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward,such as madam or racecar or the number 10201.I point
Consider there are 2 strings. InputString and a TrashSymbolString. Please implement the method to check if theInputString is palindrome, if all trash symbols are ignored. Symbol case should be ignored.Example 1:InputString: a@b!!b$aTrashSymbolsString: !@$Result should be: trueExample 2:InputString: ?Aa#cTrashSymbolsString: #?Result should be: false
+II pointsDuring the implementation TrashSymbols are not removed from the InputString and no new strings are created.
+III pointsInputString is scanned only once
Total available points 6
can use any programming launguage
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply