Leetcode

2177.consecutiveNumsSumToInteger.py

class Solution:
    def sumOfThree(self, num: int) -> List[int]:
        if num % 3 != 0:
            return []
        else: 
            return [num // 3 - 1, num // 3, num // 3 + 1]