feat(Go-Tool):
2021/02/23:删除linq包使用示例,修改二进制工具与单测类,修改lomuto划分,修改前缀树与单测类,修改时间比较工具
This commit is contained in:
@@ -23,7 +23,7 @@ func LomutoPartition(list []int, start int, end int) int {
|
||||
if list[i] < compareValue {
|
||||
moveSubscript++
|
||||
charge++
|
||||
list[moveSubscript], list[i] = list[i], list[moveSubscript]
|
||||
list[moveSubscript], list[i] = list[i], list[moveSubscript] //交换元素
|
||||
}
|
||||
}
|
||||
charge++
|
||||
|
||||
Reference in New Issue
Block a user