leetcode1023

1 class Solution(object):
2     def queryString(self, S: str, N: int) -> bool:
3         return all(S.find(bin(i)[2:]) != -1 for i in range(N, N//2 - 1, -1))

猜你喜欢

转载自www.cnblogs.com/asenyang/p/10589583.html