« All Events
2:30 PM – Intro To Competitive Programming – Gamas
October 14, 2023 @ 2:30 pm - 3:30 pm
Today We Did
- We went over isPalindromeIgnoreSpace(String) using while loop approach and 2 pointers – head and tail.
- We discussed this simulation type USACO problem – http://www.usaco.org/index.php?page=viewproblem2&cpid=891
Homework
- Inside ShellGame.java, implement to complete public int maxCorrectGuess(List<String> lines) method.
- After you finish with the code above.
- Use the shell.in file and see if the method above returns result 2.
- Use the shell2.in file and se if the method above returns result 10.
- If you have spent more than 2 hours and this is still not done. no worry move on to the next task. We will discuss the solution in the class.
- Create a new java file FencePainting.java
- Read problem in http://www.usaco.org/index.php?page=viewproblem2&cpid=567
- Implement the solution.