diff --git "a/leetcode3/\352\271\200\355\235\254\354\206\214/1401. Circle and Rectangle Overlapping.js" "b/leetcode3/\352\271\200\355\235\254\354\206\214/1401. Circle and Rectangle Overlapping.js" new file mode 100644 index 00000000..724da8f7 --- /dev/null +++ "b/leetcode3/\352\271\200\355\235\254\354\206\214/1401. Circle and Rectangle Overlapping.js" @@ -0,0 +1,22 @@ +/** + * @param {number} radius + * @param {number} xCenter + * @param {number} yCenter + * @param {number} x1 + * @param {number} y1 + * @param {number} x2 + * @param {number} y2 + * @return {boolean} + */ + +/** + 원이 (radius, xCenter, yCenter)로 주어지고, 축에 평행한 직사각형이 (x1, y1, x2, y2)로 주어진다. + 여기서 (x1, y1)은 직사각형의 왼쪽 아래 꼭짓점, (x2, y2)는 오른쪽 위 꼭짓점의 좌표이다. + 원과 직사각형이 서로 겹치면 true, 그렇지 않으면 false를 반환하라. + 즉, 원과 직사각형에 동시에 포함되는 점 (xi, yi)가 하나라도 존재하는지 확인하면 된다. +*/ + + +var checkOverlap = function(radius, xCenter, yCenter, x1, y1, x2, y2) { + +}; \ No newline at end of file