As in sets it used HashSet to store the String array, the order of the String is non-deterministic. I changed it to LinkedHashSet so it will convert the array into set while still maintaining the order. This will fix the flaky bug in binarySet and stringifySet.
As in
sets
it usedHashSet
to store the String array, the order of the String is non-deterministic. I changed it toLinkedHashSet
so it will convert the array into set while still maintaining the order. This will fix the flaky bug inbinarySet
andstringifySet
.