
class Solution { public: vector partitionLabels(string s) { vector last(26,0); int n=s.size(); for(int i=0;i ans; int start=0,end=0; int Max=0; while(end class Solution { public: vector partitionLabels(string s) { vector last(26,0); int n=s.size(); for(int i=0;i ans; int start=0,end=0; int Max=0; for(int i=0;i 记录每一个单词的最后位置(last数组)
下一篇:阿里云ECS服务器的搭建