From 3f78f057cda4bb5fc639dc0ce70c0bfaa413d248 Mon Sep 17 00:00:00 2001 From: Jinyoung Jeong <80400463+jyoung2419@users.noreply.github.com> Date: Thu, 10 Sep 2026 22:39:57 +0900 Subject: [PATCH 1/2] Add minBitwiseArray function implementation Implement function to construct minimum bitwise array based on input. --- ...14. Construct the Minimum Bitwise Array I" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "leetcode3/\354\240\225\354\247\204\354\230\201/3314. Construct the Minimum Bitwise Array I" diff --git "a/leetcode3/\354\240\225\354\247\204\354\230\201/3314. Construct the Minimum Bitwise Array I" "b/leetcode3/\354\240\225\354\247\204\354\230\201/3314. Construct the Minimum Bitwise Array I" new file mode 100644 index 00000000..9f801ae2 --- /dev/null +++ "b/leetcode3/\354\240\225\354\247\204\354\230\201/3314. Construct the Minimum Bitwise Array I" @@ -0,0 +1,24 @@ +/** + * @param {number[]} nums + * @return {number[]} + */ +var minBitwiseArray = function(nums) { + let ans = []; + + for (let i = 0; i Date: Thu, 10 Sep 2026 22:40:17 +0900 Subject: [PATCH 2/2] Add rotateTheBox function for grid rotation Implement initial structure for rotating the box grid. --- .../1861. Rotating the Box" | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 "leetcode3/\354\240\225\354\247\204\354\230\201/1861. Rotating the Box" diff --git "a/leetcode3/\354\240\225\354\247\204\354\230\201/1861. Rotating the Box" "b/leetcode3/\354\240\225\354\247\204\354\230\201/1861. Rotating the Box" new file mode 100644 index 00000000..1b53b346 --- /dev/null +++ "b/leetcode3/\354\240\225\354\247\204\354\230\201/1861. Rotating the Box" @@ -0,0 +1,20 @@ +/** + * @param {character[][]} boxGrid + * @return {character[][]} + */ +var rotateTheBox = function(boxGrid) { + // 1. 돌 먼저 오른쪽으로 + // 1-1. * 이면 stop, # 이동 + // 2. 90도 회전 + + const m = boxGrid.length; // 1x3 + const n = boxGrid[0].length; + + let ans = Array.from( + {length : n}, + () => Array(m).fill('.')); // 3x1 + + for (let i = 0; i