In the MyComparator java class, I have sorted the Strings based on their length, which means the priority that I have set in PriorityQueue is String length.
確定! 回上一頁