More elegant way to get all unique item from a string?

前端 未结 0 1132
萌比男神i
萌比男神i 2021-01-23 05:06

Given a string as \'mississippi\' I can use for-loop to compare and get the first unique characters of the similar ones (eg. ss, i, pp) easily. But I wonder if there\'s more ele

相关标签:
回答
  • 消灭零回复
提交回复
热议问题