摘要: class Solution { public: TreeNode* pre=NULL; void dfs(TreeNode* root) { if(!root) return; dfs(root->left); root->left=pre; if(pre) pre->right=root; pr 阅读全文
posted @ 2023-04-12 18:45 穿过雾的阴霾 阅读(22) 评论(0) 推荐(0)
摘要: class Solution { public: int f[110]; bool check(char a,char b) { if(a>='1'&&a<='9'&&b>='0'&&b<='9') { int c=a-'0'; c=c*10+(b-'0'); if(c>=1&&c<=26) ret 阅读全文
posted @ 2023-04-12 16:26 穿过雾的阴霾 阅读(15) 评论(0) 推荐(0)