Questions 2021 - Tcs Coding
Given a string, check if it's a palindrome or not.
Given a linked list, find the middle element. Tcs Coding Questions 2021
Example: Input - 1 -> 2 -> 3 -> 4 -> 5, Output - 3 Given a string, check if it's a palindrome or not
return count
def is_palindrome(s): return s == s[::-1] Given a string
Example: Input - "aabbc", Output - "c"