摘要: 力扣 题目2-   两数相加 题目 题解 同时向后遍历 用一个参数做进位 长度不够进行补0 代码 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 struct ListNode { 5 int val; 6 ListNode* next; 7 Li 阅读全文
posted @ 2022-08-02 16:57 无聊的阿库娅 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 力扣 题目1-   两数之和 题目 题解 n2:双重循环遍历 代码 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 using namespace std; 5 class Solution { 6 public: 7 vector<int> two 阅读全文
posted @ 2022-08-02 15:38 无聊的阿库娅 阅读(7) 评论(0) 推荐(0) 编辑