摘要: Given the coordinates of two rectilinear rectangles in a 2D plane, return the total area covered by the two rectangles. The first rectangle is defined 阅读全文
posted @ 2020-09-07 06:24 CNoodle 阅读(227) 评论(0) 推荐(0)
摘要: You are given two images, img1 and img2, represented as binary, square matrices of size n x n. A binary matrix has only 0s and 1s as values. We transl 阅读全文
posted @ 2020-09-07 05:05 CNoodle 阅读(230) 评论(0) 推荐(0)
摘要: An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2) is the c 阅读全文
posted @ 2020-09-07 03:19 CNoodle 阅读(238) 评论(0) 推荐(0)
摘要: Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa 阅读全文
posted @ 2020-09-07 02:05 CNoodle 阅读(158) 评论(0) 推荐(0)