Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAA solution to last week's challenge can be found here.
This week's challenge was submitted by @AShapiro - Thanks for your contribution!
What’s your favorite flavor of ice cream? Hard to choose just one? With ranked choice voting (RCV), you don’t have to! With RCV, you can rank your favorites in order of choice.
For this week’s challenge, we have the results of a Favorite Flavors of Ice Cream poll. Build a workflow to conduct a RCV to find the voters’ favorite flavor and the total number of voting rounds. If a flavor receives more than half of the first choices, that flavor wins. If not, the flavor with the fewest first choice votes is eliminated. For voters who picked that flavor as their “Number 1”, their votes shift to their next choice. The process continues until a flavor has more than half the votes. Click here for a video explanation of RCV.
If only all the elections were as undivisive as this one...
Fun topic, takes me back to my undergrad dissertation! My iterative macro skills were a bit rusty so I am very grateful for the challenge! Video solution here: https://www.youtube.com/watch?v=ANmJLJYqVHw&list=PL18SpOXDj-KMUD4YwWC5vZaUsIa7drxNZ&index=44
Since I knew there were only a few rounds, I created simple logic that I copied over and over until it got to 50%.
Go out and vote!