摘要: // // Created by rxh1999 on 2021/4/1. // #include<iostream> #include<bits/stdc++.h> using namespace std; void suffixArray(){ string s; cin>>s; s+='$'; 阅读全文
posted @ 2021-04-01 12:37 rxh1999 阅读(47) 评论(0) 推荐(0)
摘要: //1. 二维数组(from CR) vector<vector<int>> dp(n, vector<int>(n, -1)); 阅读全文
posted @ 2021-03-29 19:49 rxh1999 阅读(43) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/57d85990ba5b440ab888fc72b0751bf8?tpId=13&tqId=33257&tab=answerKey&from=cyc_github class Solution { public: int cutRo 阅读全文
posted @ 2021-03-29 19:24 rxh1999 阅读(64) 评论(0) 推荐(0)
摘要: https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ //注意是二叉搜索树 class Solution { public: TreeNode* ans; void dfs(TreeNode* 阅读全文
posted @ 2021-03-28 17:27 rxh1999 阅读(29) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/947f6eb80d944a84850b0538bf0ec3a5?tpId=13&tqId=11179&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 16:43 rxh1999 阅读(41) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/b736e784e3e34731af99065031301bca?tpId=13&tqId=11177&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 15:35 rxh1999 阅读(66) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/a861533d45854474ac791d90e447bafd?tpId=13&tqId=11176&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 14:38 rxh1999 阅读(51) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/91b69814117f4e8097390d107d2efbe0?tpId=13&tqId=11212&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 13:51 rxh1999 阅读(29) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/445c44d982d04483b04a54f298796288?tpId=13&tqId=11213&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 13:36 rxh1999 阅读(60) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/7fe2212963db4790b57431d9ed259701?tpId=13&tqId=11175&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 12:56 rxh1999 阅读(39) 评论(0) 推荐(0)