class Solution {
public:void moveZeroes(vector<int>& nums){int left =0;int right =0;if(nums.size()==1)return;while(right<nums.size()){if(nums[right]){swap(nums[left],nums[right]);left++;}right++;}}};
class Solution {
public:int maxArea(vector<int>& height){int left =0;int right = height.size()-1;int area =0;int result =0;while(left<right){area =(right-left)*min(height[right],height[left]); //计算区域高度result = max(area,result);if(height[left]<height[right]) // 找下一个高边缘left++;elseright--;}return result;}};
出现问题的原因和背景 oracle进行关联查询的时候因为字段存在多个用逗号切割的id,导致查询的过程中报无效数字或非法数字 问题复现
新建表A
CREATE TABLE "A" (id NUMBER NOT NULL,name VARCHAR2(255 BYTE)
)INSERT INTO "A" VALUES (1, 上海…