摘要:
所以矩形左下角为(0,0),右上角为(x,y) 给你一个二维整数数组 rectangles 和 二维整数数组 points 求每个点占据的矩形数目 ###1. 暴力 遍历点然后遍历矩形 class Solution { public: vector<int> countRectangles(vect 阅读全文
posted @ 2023-05-18 16:12
失控D大白兔
阅读(76)
评论(0)
推荐(0)
摘要:
1. 将整数转化为负二进制形式 vector<int> baseNeg2(int n) { if(n==0) return {0}; vector<int> res; int cur; int back; while(n!=0){ cur = n&1; back = abs(cur); res.pu 阅读全文
posted @ 2023-05-18 00:51
失控D大白兔
阅读(33)
评论(0)
推荐(0)

浙公网安备 33010602011771号