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))

 

posted on 2019-03-24 19:11  Sempron2800+  阅读(109)  评论(0编辑  收藏  举报