Title: Add the “matrix” practice exercise?
Hi! The “matrix” exercise (8 canonical cases) is in problem-specifications but not in the Bash track. I would like to add it.
Proposed CLI:
bash matrix.sh <matrix> {row|column} <index>
- The matrix is one string with newlines between rows and spaces between numbers. The tests pass it like
$'1 2\n3 4'. - The canonical
propertyis the second argument, and the canonicalindex(1-based) is the third. - The output is the numbers of that row or column on one line, separated by spaces.
- All 8 canonical cases are included.
Questions: is this argument order a good fit for the track, and would one number per line be better than one line? I have a working example solution, the generated tests, and instructions.append.md describing the CLI. Happy to change anything before opening a PR.
Note: matrix is currently listed under foregone in config.json. If it still makes sense to add it, I would remove it from that list in the same PR. If you would rather keep it foregone, I am happy to drop the idea.