Search
⌘K

Leetcode 2177. Find Three Consecutive Integers That Sum to a Given Number

Determine whether num can be written as a length-3 arithmetic progression of consecutive integers whose sum is num; using the fact that the middle element must equal num/3, return the triple if num is divisible by 3, otherwise return an empty array.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.