0970. Powerful Integers
https://leetcode.com/problems/powerful-integers
Description
Given three integers x
, y
, and bound
, return a list of all the powerful integers that have a value less than or equal to bound
.
An integer is powerful if it can be represented as xi + yj
for some integers i >= 0
and j >= 0
.
You may return the answer in any order. In your answer, each value should occur at most once.
Example 1:
Example 2:
Constraints:
1 <= x, y <= 100
0 <= bound <= 106
ac
Last updated