摘要: 1. class Solution { public: string multiply(string num1, string num2) { string str; int len1=num1.size(),len2=num2.size(); for(int i=len1-1;i>=0;--i) 阅读全文
posted @ 2020-04-12 21:29 qiujiejie 阅读(125) 评论(0) 推荐(0)
摘要: isSubFrom(head,root)判断从root开始,是否存在链表中的数字。 class Solution { public: bool isSubPath(ListNode* head, TreeNode* root) { if(!head) return true; if(!root) r 阅读全文
posted @ 2020-04-12 14:29 qiujiejie 阅读(107) 评论(0) 推荐(0)