print(is_palindrome("madam")) # Output: True
Given an array of integers, find the maximum sum of a subarray. Tcs Coding Questions 2021
return count
return max_sum
Given an array of integers and a target sum, count the number of pairs with that sum. Tcs Coding Questions 2021
class Node: def __init__(self, data): self.data = data self.next = None Tcs Coding Questions 2021
def is_palindrome(s): return s == s[::-1]