Skip to content

Add section to exercise READMEs for input/output format? #229

@CrowsVeldt

Description

@CrowsVeldt

In the Anagram README:

Given "listen" and a list of candidates like "enlists" "google" "inlets" "banana" the program should return a list containing "inlets".

but not all exercises lay things out so clearly. It's possible to check the tests, of course, but I think it might be better to make it clear up front. At least for less experienced programmers like myself.

I'm imagining something like:

for nucleotide-count count

Valid inputs: One of the chars \A, \T, \C, or \G 
Valid output: An integer

for nucleotide-count/nucleotide-counts

Valid inputs: A string containing the chars A, T, C, or G 
Valid output: A map of the format {\A int, \T int, \G int, \C int}

I'd be happy to start doing it myself if people think it's a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions