
Scan a single command-line string and surface the longest contiguous slice that reads the same in both directions.
./longest_palindrome "racecar"racecar./longest_palindrome "abcdcbxyz"bcdcb./longest_palindrome "shipitlevell"level./longest_palindromewrong number of argumentslongest_palindrome.cwrite
Run the tests to grade your code
Scan a single command-line string and surface the longest contiguous slice that reads the same in both directions.
./longest_palindrome "racecar"racecar./longest_palindrome "abcdcbxyz"bcdcb./longest_palindrome "shipitlevell"level./longest_palindromewrong number of argumentslongest_palindrome.cwrite
Run the tests to grade your code
Memory will appear here