摘要:
D.开关 从后往前扫一遍。 #include <bits/stdc++.h> using namespace std; string s; int main(){ int n; scanf("%d",&n); cin>>s; bool flag = 1; int ans = 0; for(int i 阅读全文
摘要:
95. 不同的二叉搜索树 II # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # 阅读全文
摘要:
110. 平衡二叉树 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = No 阅读全文