Big Boss Battle
Gaming News, Reviews & Opinions

print(is_palindrome("madam")) # Output: True

print(count_pairs_with_sum([1, 2, 3, 4, 5], 7)) # Output: 2

Given an array of integers, find the maximum sum of a subarray.

return max_sum

Given a string, check if it's a palindrome or not.

print(first_non_repeating_char("aabbc")) # Output: "c"

Given a string, find the first non-repeating character in it.

class Node: def __init__(self, data): self.data = data self.next = None