Tcs Coding Questions 2021 Official
def max_subarray_sum(arr): max_sum = float('-inf') current_sum = 0
print(first_non_repeating_char("aabbc")) # Output: "c" Tcs Coding Questions 2021
Example: Input - 1 -> 2 -> 3 -> 4 -> 5, Output - 3 Output - 3 Given a string
Given a string, check if it's a palindrome or not. Tcs Coding Questions 2021
print(is_palindrome("madam")) # Output: True