What We Did Today:
- Implemented the Cow College optimal solution.
- Went through the feeding cows problem.
Homework:
- Code up the optimal solution for Feeding The Cows, and submit your answer to the webpage and google drive when you are finished
problem: https://usaco.org/index.php?page=viewproblem2&cpid=1252 Key idea for implementation: Run a greedy algorithm where you place the food source as far away as possible to the right.
Think about how to handle edge cases at the very end of the cow list.
- Read through this problem for next week: https://usaco.org/index.php?page=viewproblem2&cpid=1371
Notes:
You can reach out to me at ddjapri@ayclogic.com if you have any questions!
You can find class notes here (Tues7PM_IntroToCompProgramming is our excel sheet for visuals).