emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[QZ5] Output Entities Order #132

Closed schun99 closed 3 years ago

schun99 commented 3 years ago

Should there be a certain order for output entities? I know in test case, it is United States and then South Korea. However, when I added more countries I get different orders. For example, when I added United States, South Korea, China, Chile as my list, then I get China, Chile, South Korea, and United States. Both begin/end index are correctly shown, but I'm just wondering if the order matters.

lujiaying commented 3 years ago

The Order does not matter.