From 2eea3528e16f65e40467bcf045a76e6f382a1e01 Mon Sep 17 00:00:00 2001 From: 724thomas <724thomas@gmail.com> Date: Fri, 15 May 2026 23:35:09 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=B5=9C=EC=9B=90=EC=A4=80]=20Day15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3925. Concatenate Array With Reverse.py" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "leetcode3/\354\265\234\354\233\220\354\244\200/3925. Concatenate Array With Reverse.py" diff --git "a/leetcode3/\354\265\234\354\233\220\354\244\200/3925. Concatenate Array With Reverse.py" "b/leetcode3/\354\265\234\354\233\220\354\244\200/3925. Concatenate Array With Reverse.py" new file mode 100644 index 00000000..55d660b1 --- /dev/null +++ "b/leetcode3/\354\265\234\354\233\220\354\244\200/3925. Concatenate Array With Reverse.py" @@ -0,0 +1,24 @@ +# + +''' +1. 아이디어 : + + +2. 시간복잡도 : + O() + +3. 자료구조/알고리즘 : + + +''' + + +class Solution: + def concatWithReverse(self, nums: list[int]) -> list[int]: + n = len(nums) + ans = [] + for i in range(n): + ans.append(nums[i]) + for i in range(n-1,-1,-1): + ans.append(nums[i]) + return ans \ No newline at end of file