题目描述: 方法一:O(N) class Solution: def findNumbers(self, nums: List[int]) -> int: ans=0 for num in nums: if len(str(num))%2==0: ans+=1 return ans 方法二:数学 O(N) class Solution: def findNumbers(self, nums: List[int]) -> int: return sum(1 for num in nums if…
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 26进制的实现. 没什么难点.就是需要需要注意是 n = (n-1)/26 public class Solution { public String conv…