Skip to content

Question about the KK algorithm output #295

Answered by hhirtz
csmoe asked this question in Q&A
Discussion options

You must be logged in to vote

It would look like this:

partition
    .iter()
    .zip(weights)
    .fold(vec![Vec::new(); 3], |acc, (&part, &weight)| {
        acc[part].push(weight);
        acc
    })

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@csmoe
Comment options

@hhirtz
Comment options

Answer selected by csmoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants