Skip to content

Add approaches for the Eliud’s Eggs exercise #4227

Description

@Yrahcaz7

From this forum thread.

As an easy exercise that is linked to in learning mode, I think it is important that the Eliud's Eggs exercise gets a Dig Deeper section with approaches. I offer to create a PR with approach docs for the following approaches:

Approaches/variants that may or may not be worth adding:

  • An even more extreme variant of the "cheating" approach, using function aliasing.

  • An approach that converts to a binary string and uses regular expressions to count the ones. Regexes would definitely over-complicate things, but it might be an opportunity to show how regexes are not suitable for everything.

  • A variant of the binary modification variant that I can't really understand. If I added this, I would need some help in understanding it.

New ideas (things that weren't on the forum post):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions