American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro to Competitive Programming – Darin

May 27 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Introduced Data Structures and Algorithms (DSA)
  2. Started Shell Game implementation

Homework:

Submit into the google drive here when you are finished!

  1. Continue the shell game problem, and implement your solution! https://usaco.org/index.php?page=viewproblem2&cpid=891
  2. Hint: You have to use two for loops, one for the number of initial positions, and one more for the number of swaps
  3. You have been shown how to get input from a file, so you can use the input as a list where each element is a string. Strings such as “2 1 1” can be parsed with .charAt()
  4. Note: input files (shell.in) have to be a text file in the same directory as “src” (not inside src)

Notes:

You can reach out to me at ddjapri@ayclogic.com if you have any questions!

You can find class notes here.

Details

Date:
May 27
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights