摘要: 题目描述 Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. 题目大意 计算[0, n]之间的数字中包含多少1 。 阅读全文
posted @ 2019-06-27 20:29 你好哇傻小妞 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ 阅读全文
posted @ 2019-06-27 10:52 你好哇傻小妞 阅读(157) 评论(0) 推荐(0) 编辑