Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6cf5bc6

Browse files
committed
Time: 0 ms (100.00%) | Memory: 17.7 MB (52.92%) - LeetSync
1 parent 361f0a0 commit 6cf5bc6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution:
2+
def getNoZeroIntegers(self, n: int) -> List[int]:
3+
# ans = []
4+
N = n//2 + 1
5+
for i in range(1, N):
6+
if "0" not in str(i) and "0" not in str(n-i):
7+
return [i, n-i]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /