摘要: Example 1: Input: secret = "1807", guess = "7810" Output: "1A3B" Explanation: 1 bull and 3 cows. The bull is 8, the cows are 0, 1 and 7. Example 2: In 阅读全文
posted @ 2020-02-12 21:30 xuan_abc 阅读(120) 评论(0) 推荐(0)
摘要: Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then 阅读全文
posted @ 2020-02-12 10:33 xuan_abc 阅读(106) 评论(0) 推荐(0)