Skip to content

Fix counts array visualization in Counting Sort #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2021

Conversation

webthethird
Copy link
Contributor

Final step did not correctly visualize decrementing the value in the counts array.
It was decrementing the value but not updating the visualization.
Just added one countsTracer.patch at line 66, and moved counts[number]-- up to line 61.

Final step did not correctly visualize decrementing the value in the counts array.
It was decrementing the value but not updating the visualization.
My previously committed code left the boxes in the counts array colored red, so I realized I had forgotten to add a depatch after the patch that I added at line 66
Copy link
Contributor Author

@webthethird webthethird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the missing countsTracer.patch and corresponding depatch, and moved counts[number]-- up to line 61, so that the visualization would show the values in counts being decremented during the final step

@64json 64json merged commit fe3adcf into algorithm-visualizer:master Mar 21, 2021
@64json
Copy link
Member

64json commented Mar 21, 2021

thanks @webthethird!

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.

2 participants