摘要: 题目: class Solution { //本题单纯找规律,要注意通过n%digits来判断有几个位数为digits的数 public: int findNthDigit(int n) { long base = 9, digits = 1; //digits代表位数 while(n-base*d 阅读全文
posted @ 2023-09-02 21:04 孜孜不倦fly 阅读(20) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202309/2679751-20230902194907472-1661771290.png) ``` class Solution { public: int maxSubArray(vector& 阅读全文
posted @ 2023-09-02 19:54 孜孜不倦fly 阅读(12) 评论(0) 推荐(0)