Sorting (names) using Merge Sort

前端 未结 3 504
借酒劲吻你
借酒劲吻你 2020-12-20 20:31

having problem sorting repeated Strings,

and here\'s my code..

i successfully sorted the first array but in the second (with repeated strings) it seems not

3条回答
  •  失恋的感觉
    2020-12-20 20:58

    Why not just concatenate the two arrays (String ClassOne and ClassTwo) into one and then call a MergeSort on one array? Your process makes the program more ambiguous in my opinion.

提交回复
热议问题