From 3e04c4037605f8bdcaa82127e8ae989aaad8a9f0 Mon Sep 17 00:00:00 2001 From: dmswl6310 Date: Tue, 8 Sep 2026 22:45:07 +0900 Subject: [PATCH] 0908 --- ...her Matrix Can Be Obtained By Rotation.js" | 49 +++++++++++++++++++ .../894. All Possible Full Binary Trees.js" | 20 ++++++++ 2 files changed, 69 insertions(+) create mode 100644 "leetcode3/\355\231\251\354\235\200\354\247\200/1886. Determine Whether Matrix Can Be Obtained By Rotation.js" create mode 100644 "leetcode3/\355\231\251\354\235\200\354\247\200/894. All Possible Full Binary Trees.js" diff --git "a/leetcode3/\355\231\251\354\235\200\354\247\200/1886. Determine Whether Matrix Can Be Obtained By Rotation.js" "b/leetcode3/\355\231\251\354\235\200\354\247\200/1886. Determine Whether Matrix Can Be Obtained By Rotation.js" new file mode 100644 index 00000000..65545c52 --- /dev/null +++ "b/leetcode3/\355\231\251\354\235\200\354\247\200/1886. Determine Whether Matrix Can Be Obtained By Rotation.js" @@ -0,0 +1,49 @@ +/** + * @param {number[][]} mat + * @param {number[][]} target + * @return {boolean} + */ +var findRotation = function(mat, target) { + // 90도씩 돌려가면서 비교해보면 된다. + const n=mat.length; + let flag; + for(let turn=0;turn<4;turn++){ + // 같은지 검사 + flag=true; + for(let i=0;iArray(n)); + for(let i=0;i