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

Misformatted/linked wiki entry in python sorting #11225

Open
MarlieChiller opened this issue Dec 31, 2023 · 0 comments · May be fixed by #11227
Open

Misformatted/linked wiki entry in python sorting #11225

MarlieChiller opened this issue Dec 31, 2023 · 0 comments · May be fixed by #11227
Labels
awaiting triage Awaiting triage from a maintainer

Comments

@MarlieChiller
Copy link

What would you like to share?

This file should be edited (I tried, but I dont think you can edit wikis on forks)


current

image

proposed

image

and requires modifying the markdown to this:

<h2>Selection sort</h2>

**selection sort**, algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from the unsorted part and putting it at the beginning. The algorithm maintains two subarrays in a given array.
<ol>
<li> The subarray which is already sorted.</li>
<li> Remaining subarray which is unsorted.</li>

In every iteration of selection sort, the minimum element (considering ascending order) from the unsorted subarray is picked and moved to the sorted subarray.

#### Properties:
- Worst-case performance O(n^2)
- Best-case performance O(n)
- Average case performance O(n^2)

**read more at: [Wikipedia](https://en.wikipedia.org/wiki/Selection_sort)**<br>
**code: [Selection sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/selection_sort.py)**

***

Note: edit required to bold text and link to code. example ref

Additional information

No response

@MarlieChiller MarlieChiller added the awaiting triage Awaiting triage from a maintainer label Dec 31, 2023
@MarlieChiller MarlieChiller linked a pull request Jan 2, 2024 that will close this issue
15 tasks
@TheAlgorithms TheAlgorithms deleted a comment from Khany123 Jan 15, 2024
@TheAlgorithms TheAlgorithms deleted a comment from MarlieChiller Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage Awaiting triage from a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant