Add two integers

December 17, 2022

math-and-geometry

Problem URL: Add two integers

This is a stupid problem. We can just add to numbers and return the result.

class Solution:
    def sum(self, num1: int, num2: int) -> int:
        return num1+num2

Time complexity: O(1)
Space complexity: O(1)