Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous Requirements with regards to double digit output #29

Closed
turboMaCk opened this issue Feb 6, 2022 · 1 comment
Closed

Ambiguous Requirements with regards to double digit output #29

turboMaCk opened this issue Feb 6, 2022 · 1 comment
Assignees

Comments

@turboMaCk
Copy link
Contributor

turboMaCk commented Feb 6, 2022

Related to my comment #28 (comment)

there is slight ambiguity in output produce by the program. consider this input:

AAAAAAAAAAA could produce 11A

now imagine digit in the input: 1 will produce 11

This means that output for the input 111x A sequence would be the same as for 1A (111A).

This is not a problem given there is only one simple example but it sort of makes it hard to say how would truly correct implementation look like.

@otobrglez
Copy link
Owner

That is a very good point. I've added the "4th" rule/instruction that now states:

  1. Assume that the input is always a sequence of ASCII upper-case characters (no numbers or symbols).

Tnx!

@otobrglez otobrglez self-assigned this Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants