ICode9

精准搜索请尝试: 精确搜索
  • 【LeetCode】Powerful Integers(强整数)2019-03-23 14:52:53

    这道题是LeetCode里的第970道题。 题目描述:   给定两个正整数 x 和 y,如果某一整数等于 x^i + y^j,其中整数 i >= 0 且 j >= 0,那么我们认为该整数是一个强整数。 返回值小于或等于 bound 的所有强整数组成的列表。 你可以按任何顺序返回答案。在你的回答中,每个值最多

  • Leetcode 970. Powerful Integers2019-03-16 08:51:48

    Brute Force(暴力) class Solution(object): def powerfulIntegers(self, x, y, bound): """ :type x: int :type y: int :type bound: int :rtype: List[int] """ ans=[]

  • 970. Powerful Integers2019-01-11 17:05:34

    Given two non-negative integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. Return a list of all powerful integers that have value less than or equal to bound. You may return the answer in any o

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有