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