i searched web for this question but found no answer, thus i'm posting it here, my return list
gets out of order because i am using the set
data type, so is it legal in pset6 to return a unordered list in lines, sentences and substrings?
1 Answer
https://docs.cs50.net/2018/x/psets/6/similarities/less/similarities.html repeatedly talks about no duplicates, but never mentions order. So I assume any order will work. If check50
complains about order (which I doubt), there's sort
and sorted
. But again, you probably won't need those.