一,思路:考察你对字符串的一些函数的掌握情况。常用的字符串函数 二,代码 #include <iostream>#include<cstring>#include<algorithm>#include<set>#include<stack>#include<queue>using namespace std;const int N=5010;typedef long long l
Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1\2/3 return [1,3,2]. Note: Recursive solution is trivial, could you