We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22ff29 commit 046798fCopy full SHA for 046798f
src/problem/p0148_sort_list.rs
@@ -43,7 +43,7 @@ use crate::util::linked_list::ListNode;
43
pub struct Solution;
44
45
impl Solution {
46
- // need randomize pivot, optimize for == povit, three may quick sort,
+ // need randomize pivot, optimize for == povit, three way quick sort,
47
// e.g. [1,1,1,,1,1,4,4,4,6,5,7,8,9], bla, bla
48
pub fn sort_list_with_quick_sort(head: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
49
if head.is_none() || head.as_ref().unwrap().next.is_none() {
0 commit comments