From 2ace63576390b11db90293873eaa64b4bf936a30 Mon Sep 17 00:00:00 2001 From: Jinyoung Jeong <80400463+jyoung2419@users.noreply.github.com> Date: Tue, 8 Sep 2026 22:40:39 +0900 Subject: [PATCH] Create 1886. Determine Whether Matrix Can Be Obtained By Rotation --- ...hether Matrix Can Be Obtained By Rotation" | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 "leetcode3/\354\240\225\354\247\204\354\230\201/1886. Determine Whether Matrix Can Be Obtained By Rotation" diff --git "a/leetcode3/\354\240\225\354\247\204\354\230\201/1886. Determine Whether Matrix Can Be Obtained By Rotation" "b/leetcode3/\354\240\225\354\247\204\354\230\201/1886. Determine Whether Matrix Can Be Obtained By Rotation" new file mode 100644 index 00000000..d8aedd88 --- /dev/null +++ "b/leetcode3/\354\240\225\354\247\204\354\230\201/1886. Determine Whether Matrix Can Be Obtained By Rotation" @@ -0,0 +1,43 @@ +/** + * @param {number[][]} mat + * @param {number[][]} target + * @return {boolean} + */ +var findRotation = function(mat, target) { + const n = mat.length; + let is0 = true; + let is90 = true; + let is180= true; + let is270 = true; + for (let i = 0; i (j, n-1-i) +// -> (n-1-i, n-1-j) +// -> (n-1-j, i)