【发布时间】:2017-06-05 17:31:05
【问题描述】:
我们得到一个 string 和一个 integer。如果要将字符按排序顺序排列,我们必须知道在字符串中的那个整数位置处是什么字符。
举例
String = LALIT
Index = 3
Sorted string AILLT and the character at position 3 is L
不排序可以解决这个问题吗?
如果是,那么有人可以提供伪代码。
【问题讨论】:
标签: string algorithm sorting hash