Skip to content

Conversation

@f0Re3t
Copy link
Contributor

@f0Re3t f0Re3t commented Sep 3, 2024

The existing definition of the number of lines does not work well with repeated '\n', at the beginning of the line, at the end. A more improved version of determining the number of items in the dialog, eliminating all kinds of programmer errors.

For example, when passing the string "\n1\n2\n3\n", your algorithm will give the result 3, instead of the valid 2 (0, 1, 2). Thus, the cheater can send 3 in response, even though it is not in the dialog list.

@CLAassistant
Copy link

CLAassistant commented Sep 3, 2024

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

3 participants