day14 | R Documentation |
Day 14: Extended Polymerization
Day 14: Extended Polymerization
template
Starting template
fun_call
Function call to switch()
to convert two-letter pairs
according to rules
step()
take one step
Polymer$step()
take_steps()
take n steps
Polymer$take_steps(n = 10)
n
number of steps to take
get_answer()
Calculate count of most common letter minus least common letter
Polymer$get_answer()
clone()
The objects of this class are cloneable with this method.
Polymer$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
p <- Polymer$new()
p$take_steps(10)
p$get_answer()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.