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

is it a bug or i'v been careless about question #1

Closed
Mobin-khorushi opened this issue Sep 19, 2021 · 1 comment
Closed

is it a bug or i'v been careless about question #1

Mobin-khorushi opened this issue Sep 19, 2021 · 1 comment

Comments

@Mobin-khorushi
Copy link

ARGUMENTS: [1, 2, 3]
EXPECTED: False
RETURNED: True

This is for the problem with function -> is_ascending(items)

The question is Ascending list

Well if its not ascending then what is it ?

@ikokkari
Copy link
Owner

Most likely your is_ascending function mutates the contents of the items list and returns the wrong answer, causing the discrepancy report to print out the modified items instead of the original argument.

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