Skip to content

Added CONTRIBUTING.md #18

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

Merged
merged 7 commits into from
Nov 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatted with psf/black
  • Loading branch information
github-actions authored and github-actions committed Nov 2, 2020
commit e232c213342af12b6539528e20a0dfd077f2b2d7
5 changes: 4 additions & 1 deletion strings/reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def reverse2(original: str) -> str:
original = list(original)
i, j = 0, len(original) - 1
while i < j:
original[i], original[j] = original[j], original[i],
original[i], original[j] = (
original[j],
original[i],
)
i += 1
j -= 1
return "".join(original)
Expand Down