摘要: https://leetcode.cn/problems/sort-colors/ 提交代码1 void sortColors(int* nums, int numsSize){ int a=0,b=0,c=0,i; for(i=0;i<numsSize;i++){ if(nums[i]==0){ 阅读全文
posted @ 2022-05-12 21:36 孤舟浮岸 阅读(85) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/move-zeroes/ 提交代码1 void moveZeroes(int* nums, int numsSize){ int diff=0; int arr[numsSize]; for(int i=0;i<numsSize;i++){ 阅读全文
posted @ 2022-05-12 20:46 孤舟浮岸 阅读(42) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/wintershii/article/details/80558739 阅读全文
posted @ 2022-05-12 17:30 孤舟浮岸 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 不能被继承,因为String类有final修饰符,而final修饰的类是不能被继承的。 阅读全文
posted @ 2022-05-12 17:26 孤舟浮岸 阅读(157) 评论(0) 推荐(0) 编辑