题763. 划分字母区间

it2025-07-15  1

Java

class Solution { public List<Integer> partitionLabels(String S) { List<Integer> res=new ArrayList<>(); int[] temp=new int[26]; for(int i=0;i<S.length();i++){ temp[S.charAt(i)-'a']=i;
最新回复(0)