Sort a string based on the order of another string

后端 未结 0 324
轮回少年
轮回少年 2020-12-17 02:26

I was tasked with ordering a string based on another string assuming everything in the string is also in the sorting string

E.G.

s = "Hello World"

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