Skip to content

issues Search Results · repo:hustcc/JS-Sorting-Algorithm language:Java

Filter by

26 results
 (71 ms)

26 results

inhustcc/JS-Sorting-Algorithm (press backspace or delete to remove)

快速排序的精髓在于“减少swap的次数”,目前的实现代码中,swap次数偏多,不够精简,在GIF动图的演示里也能看出问题。 正确的实现方式可以参考wikipedia,以下是python实现方式的代码: def quickSort(arr, left=None, right=None): left = 0 if not isinstance(left,(int, float)) else left ...
  • bones7456
  • Opened 
    on Dec 22, 2023
  • #64

天天想着改进性能,改进个屁呢,冒泡排序谁tm要你考虑输入了,什么时候最快最慢只是用来举例,你tm说非得判断输入是不是有序的,显得你很聪明呗,真是服了,什么垃圾都能出教程
  • xqc0001
  • 3
  • Opened 
    on Oct 16, 2022
  • #63

想抄袭你的素材, 构造一个 C 版本的. 因为变动很大. 可能和你原先不相容. 完全制霸基础排序算法的工程实现技巧.
  • wangzhione
  • 2
  • Opened 
    on May 6, 2022
  • #62

平均时间复杂度不应该既优于最坏时间复杂度,又优于最好时间复杂度,建议再确认一些相关资料。这里给出一些参考:https://www.cs.wcupa.edu/rkline/ds/shell-comparison.html https://en.wikipedia.org/wiki/Shellsort
  • shouao
  • Opened 
    on Dec 31, 2021
  • #56

for(let i = gap; i len; i +=gap) {
  • wujiahui1
  • 1
  • Opened 
    on Jan 31, 2021
  • #53

python代码里面最后的arr[preIndex+1] = current这一句没太明白,为什么还要对当前位置的数组重新赋值?
  • FarmerChillax
  • 2
  • Opened 
    on Dec 18, 2020
  • #52

我个人开发了一个微信小程序,起初是做为尝试方便自己查看 GitHub 的开源项目和书籍,但是后续使用人数逐渐增多了。 考虑到小程序上展示的项目都有对应的开源许可,可能会涉及对部分项目的侵权。 我们观察到您的项目并没有在 GitHub 上设置任何的开源许可,所以想向您申请相关的许可,许可包括允许在小程序上展示和查看。 以下是小程序的二维码,可以扫码查看。 qrcode 如果您觉得我已经侵犯了您的权利,请告知我,我将第一时间移除。 ...
  • ZhuPeng
  • Opened 
    on Sep 21, 2020
  • #44

我个人开发了一个微信小程序,起初是做为尝试方便自己查看 GitHub 的开源项目和书籍,但是后续使用人数逐渐增多了。 考虑到小程序上展示的项目都有对应的开源许可,可能会涉及对部分项目的侵权。 我们观察到您的项目并没有在 GitHub 上设置任何的开源许可,所以想向您申请相关的许可,许可包括允许在小程序上展示和查看。 以下是小程序的二维码,可以扫码查看。 qrcode 如果您觉得我已经侵犯了您的权利,请告知我,我将第一时间移除。 ...
  • ZhuPeng
  • 2
  • Opened 
    on Sep 21, 2020
  • #43

应为 for gap length/3
  • fengqiangzhao
  • Opened 
    on Jul 30, 2020
  • #42
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub