We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f950ae + b248bf9 commit 2bcb0d1Copy full SHA for 2bcb0d1
src/twosat.rs
@@ -75,7 +75,7 @@ mod tests {
75
}
76
77
//Check the min distance between flags
78
- res.sort();
+ res.sort_unstable();
79
let mut min_distance = i32::max_value();
80
for i in 1..res.len() {
81
min_distance = std::cmp::min(min_distance, res[i] - res[i - 1]);
0 commit comments