(n: usize)
| 86 | |
| 87 | impl QuickFindUF { |
| 88 | pub fn new(n: usize) -> Self { |
| 89 | let id = (0..n).collect(); |
| 90 | Self { id, count: n } |
| 91 | } |
| 92 | |
| 93 | /// Returns the canonical element of the set containing element p |
| 94 | pub fn find(&self, p: usize) -> usize { |
nothing calls this directly
no outgoing calls
no test coverage detected