The Full Counting Sort

  • + 1 comment

    I had the same logic as you , although i was using Arrays.fill(st, new StringBuffer) instead of the loop

    for(int i=0;i<100;i++) { st[i]=new StringBuffer(); }

    and i was getting wrong answer all the time. In the step st[k]=st[k].append(s); i was getting all the array elements changed instead of the one at index k. can anyone help me with this??????