Leetcode solving: 970. Powerful Integers

preview_player
Показать описание
Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i is greater than 0 and j is greater than 0.

Return a list of all powerful integers that have value less than or equal to bound.

You may return the answer in any order. In your answer, each value should occur at most once.

####################################
Please subscribe to my channel

My other Leetcode solving videos (easy)

Leetcode solving videos (Medium):

Leetcode solving videos (Hard):

########################################
Рекомендации по теме
visit shbcf.ru