jarv / cmdchallenge

This repo is mirror of https://gitlab.com/jarv/cmdchallenge
https://about.cmdchallenge.com
MIT License
721 stars 71 forks source link

Can't solve puzzle disp_table #155

Closed pholat closed 7 years ago

pholat commented 7 years ago

Summary

Can't solve puzzle: https://cmdchallenge.com/?utm_source=nixcraft#/disp_table with resolution below

Steps to reproduce

Provide solution: while read line; do printf "%-7s" $( sed 's/,/ /g' <<< $line ); echo "" ; done < table.csv See that resolution is not accepted. Most probably due to additional spaces at the end of line?

I saw similar issue when solving: https://cmdchallenge.com/?utm_source=nixcraft#/print_number_sequence With for + printf instead seq

jarv commented 7 years ago

I think this is indeed a bug as for this challenge I would ignore blank space at the end of lines.

pholat commented 7 years ago

Thanks, it's appreciated.

Ps. I've enjoyed em a lot, good work :)