Skip to content

Update maxindex.py#4

Open
SushmitaY wants to merge 1 commit intoavinash-ducs:masterfrom
SushmitaY:patch-4
Open

Update maxindex.py#4
SushmitaY wants to merge 1 commit intoavinash-ducs:masterfrom
SushmitaY:patch-4

Conversation

@SushmitaY
Copy link
Copy Markdown

In line 12, change the condition from lst[i] >= lst[i+1] -> lst[i] > lst[i+1].
You can save the time spent on swapping elements when they are equal.

In line 12,  change the condition from lst[i] >= lst[i+1] -> lst[i] > lst[i+1].
You can save the time spent on swapping elements when they are equal.
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.

1 participant