My friend asked this problem recently & am not sure which sorting to use for this kind of problem:-There are 20 stones of different heights. Each stone is so heavy, we need to sort the stones such that smallest stones are to left and highest to right. As stones are heavy make algorithm which moves stone least distance possible Which sorting method suits this kind of problem?
sorting stone Problem
sorting