摘要: 链接:https://leetcode-cn.com/problems/restore-ip-addresses/ 代码 class Solution { public: vector<string> ans; vector<string> restoreIpAddresses(string s) 阅读全文
posted @ 2020-07-16 21:26 景云ⁿ 阅读(66) 评论(0) 推荐(0)
摘要: 链接:https://leetcode-cn.com/problems/reverse-linked-list-ii/ 代码 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *nex 阅读全文
posted @ 2020-07-16 21:14 景云ⁿ 阅读(53) 评论(0) 推荐(0)
摘要: 链接:https://leetcode-cn.com/problems/decode-ways/ 代码 class Solution { public: int numDecodings(string s) { int n = s.size(); s = ' ' + s; vector<int> f 阅读全文
posted @ 2020-07-16 21:03 景云ⁿ 阅读(142) 评论(0) 推荐(0)