0075. 颜色分类 #245
0075. 颜色分类
#245
Replies: 1 comment
-
|
请问index怎么可能会小于left啊 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
0075. 颜色分类
--- 0075. 颜色分类 标签:数组、双指针、排序 难度:中等 题目链接 0075. 颜色分类 - 力扣 题目大意 描述:给定一个数组 nums,元素值只有 0、1、2,分别代表红色、白色、蓝色。 要求:将数组进行排序,使得红色在前,白色在中间,蓝色在最后。 说明: 要求不使用标准库函数,同时仅用常数空间,一趟扫描解决。 n==nums.lengt...
https://algo.itcharge.cn/solutions/0001-0099/sort-colors/
Beta Was this translation helpful? Give feedback.
All reactions