题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
https://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
a=input('','s'); for i=1:size(a,2) a(2,i)=sum((a(1,:)==a(1,i))); end minvalue=min(a(2,:)); for ii=size(a,2):-1:1 if a(2,ii)==minvalue a(:,ii)=[]; end end fprintf("%s",a(1,:));