-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Double sort (Added with required updates) #1399
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
Conversation
Travis CI tests are failing. See CONTRIBUTING.md for details. |
sorts/double_sort.py
Outdated
lst[no_of_elements-1-j]=lst[no_of_elements-2-j] | ||
lst[no_of_elements-2-j]=temp | ||
return lst | ||
print("enter the list to be sorted") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put lines 29-31 under a if __name__ == "__main__":
block to placate Travis CI
sorts/double_sort.py
Outdated
lst = [int(x) for x in input().split()] # inputing elements of the list in one line | ||
if __name__ == "__main__": | ||
print("enter the list to be sorted") | ||
lst = [int(x) for x in input().split()] # inputing elements of the list in one line | ||
sorted_lst=double_sort(lst) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent the remaining line also or Travis tests will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!!
* Added with required updates * Updated * required updates * Update double_sort.py * Update double_sort.py
I have made all the changes requested .