摘要:
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), rig 阅读全文
摘要:
public: bool isOneBitCharacter(vector<int>& bits) { int n=bits.size();int i; for(i=0;i<n-1;) { if(bits[i]==1) i+=2; else if(bits[i]==0) i+=1;//注意不要忘了e 阅读全文