Skip to content

Commit 939b581

Browse files
Merge pull request #1612 from CodingTestStudy2/최원준
[최원준] Day28
2 parents 08d7d74 + f10e6aa commit 939b581

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
3+
'''
4+
1. 아이디어 :
5+
-
6+
7+
2. 시간복잡도 :
8+
O(n)
9+
10+
3. 자료구조/알고리즘 :
11+
-
12+
13+
'''
14+
15+
class Solution:
16+
def decode(self, encoded: List[int], first: int) -> List[int]:
17+
arr = [first]
18+
19+
for num in encoded:
20+
arr.append(arr[-1] ^ num)
21+
22+
return arr

0 commit comments

Comments
 (0)