day01笔记 1.题目描述2.代码构思(debug) 1.题目描述 2.代码构思(debug) class Solution: """ @param s: a string @return: a string """ def largest_letter(self, s: str) -> str: # write your code here for item in range(ord("Z"),ord("A")-1,-1): #从大到小开始遍历 if chr(item) in s and chr(item).lower() in s: return chr(item) return "NO"