Skip to content

fix bug in min-cut caused by mutation from sort#15

Open
bo-tato wants to merge 1 commit intoeschulte:masterfrom
bo-tato:min-cut-fix
Open

fix bug in min-cut caused by mutation from sort#15
bo-tato wants to merge 1 commit intoeschulte:masterfrom
bo-tato:min-cut-fix

Conversation

@bo-tato
Copy link

@bo-tato bo-tato commented Jan 19, 2024

fixes #14
by using extremum instead of (car (sort ... which causes a bug because of sort's mutation side effect, it should also be slightly more efficient as it just gets the min instead of sorting the whole list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug in min-cut caused by destructive mutation from sort

1 participant