摘要: long pre = LONG_MIN; bool isValidBST(struct TreeNode* root){ if(!root)return true; if(!(isValidBST(root->left))) return false; if(root->val <= pre)ret 阅读全文
posted @ 2021-11-24 22:30 冬日寻雾记 阅读(36) 评论(0) 推荐(0)