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
Task #2. Palindrome A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am