The Full Counting Sort

  • + 0 comments

    what you are doing is creating a reference variable and passing it every element ,so the reference to every variable(st[k]) is same.Instead what you have to do is initialise each variable independently so that each of them have has their own reference of a StringBuffer variable and changing one might not affect other.