Leetcode 2455. Average Value of Even Numbers That Are Divisible by Three
Filter the array for numbers divisible by both 2 and 3 (i.e., divisible by 6) and return the floor of their average; if none exist return 0. This is a simple filter-and-aggregate problem on up to 1000 positive integers.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.