GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [LeetCode] 970. Powerful Integers · Issue #970 · grandyang/leetcode Open DescriptionGiven two positive integers Return a list of all powerful integers that have value less than or equal to You may return the answer in any order. In your answer, each value should occur at most once. Example 1: Example 2: Note:
这道题定义了一种强力整数,说是给定的整数x和y分别的i次幂和j次幂之和,现在又给了一个整数 bound,让返回不超过这个范围的所有的强力整数。既然是一道 Easy 的题目,就不要考虑太多的技巧了,直接上无脑破解了吧。博主最开始的解法是在 bound 范围内先分别生成x和y的指数数组,即 Github 同步地址: 参考资料: https://leetcode.com/problems/powerful-integers/ https://leetcode.com/problems/powerful-integers/discuss/214212/JavaC%2B%2BPython-Easy-Brute-Force ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |