<- readLines("input.txt")
input ## or perhaps:
<- readr::read_csv(
input "input.txt",
delim = "\t",
col_names = FALSE)
## etc.
Welcome to Yellow Brick Code
This site houses coding challenges for students in Computer Science classes at Georgetown College. Questions are in the spirit of Advent of Code.
The problems accompany my notes Beginning Computer Science with R, so like the notes, they elaborate on the Frank Baum’s story The Wonderful Wizard of Oz. The Wizard of Oz being no longer under copyright, I have taken the liberty of quoting from it extensively. Smetimes I also use an image of one of the illustrations that W. W. Denslow made for the 1900 edition of the book; these too are now in the public domain.
The problems are in the sidebar menu. If your browser view is narrow the sidebar may be hidden, in which case it may be accessed by pressing a >
button.
Notes for Students
If you are solving a problem for class, write your solution as in an R script or R Markdown document saved to your submit
folder on the College’s R Studio server. The name of the file should match the filename of the problem itself on this site.
For example, suppose the URL for the problem is:
https:homerhanumat.github.io/YellowBrickCode/01_scarecrow_walk.html
In that case you should name your file:
01_scarecrow_walk.R
, or01_scarecrow_walk.Rmd
.
Also, you should create a text file called input.txt
and save it to your submit
folder. In the statement of the problem there will be a link to the data for that problem. Following that link, copy the data and paste it into input.txt
. In your solution document, you can begin with whatever data-intake command is most appropriate for your situation, e.g.: