[2017][rust][1.0]

sorbet
Alpha Chen 7 years ago
parent 6acc2899be
commit e84427d454

@ -8,6 +8,7 @@ pub fn solve(input: &str) -> Result<String, Error> {
.collect::<Result<_, _>>()?; .collect::<Result<_, _>>()?;
// 1 // 1
// let offset = 1;
let offset = input.len() / 2; let offset = input.len() / 2;
let offset_iter = input.iter().cycle().skip(offset).take(input.len()); let offset_iter = input.iter().cycle().skip(offset).take(input.len());

Loading…
Cancel
Save