摘要:
#include #include #include #include using namespace std; int main() { deque strDeq; strDeq.assign(4,string("CHINA")); strDeq.push_back("first_string"); strDeq... 阅读全文
摘要:
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; */ class Solution { public: T... 阅读全文
摘要:
链接:https://www.nowcoder.com/questionTerminal/9023a0c988684a53960365b889ceaf5e来源:牛客网 思路:首先知道中序遍历的规则是:左根右,然后作图 结合图,我们可发现分成两大类:1、有右子树的,那么下个结点就是右子树最左边的点;( 阅读全文