-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Fix Bug: Missing Edge Case for odd_even_transposition_parallel.py #10976
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
for more information, see https://pre-commit.ci
Hi, can any of the admins merge this pr, if possible✌️ |
Hey @tianyizheng02 can you please review this pr.❤️ |
position, | ||
value, | ||
l_send, | ||
r_send, | ||
lr_cv, | ||
rr_cv, | ||
result_pipe, |
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 add type hints.
This branch has conflicts that must be resolved
|
Closing awaiting_changes PRs to prepare for Hacktoberfest 2024 |
Are you mad by chance??
Regards,
Surya Prakash.K
…Sent from my iPhone
On Mon, 30 Sep 2024 at 2:53 PM, Christian Clauss ***@***.***> wrote:
Closed #10976 <#10976>.
—
Reply to this email directly, view it on GitHub
<#10976 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESSU2VMAELYHTOKBRNG5RLZZEKAZAVCNFSM6AAAAABPC22X3GVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGQ2TENJUGUYTKMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Not mad at all. These PRs were closed by automated scripts. Please feel free to try again tomorrow under Hacktoberfest 2024. |
Describe your change:
This enhanced code includes fixed bugs pointed out by @RaymondDashWu. The problem with the Algorithm was that it assumed the length of the array to be sorted equal to 10 (check the 1st for loop inside the function oe_process), which is why when @RaymondDashWu tried sorting an array with length 11, the returned sorted array is not as expected. So, I just passed an argument named arr_len which contains the array's length value.
In addition to fixing this bug, this code includes exception handling for user input, and more detailed docstrings. It's now more robust and readable.
Checklist: