Skip to content

Commit

Permalink
[level 1] Title: 같은 숫자는 싫어, Time: 85.67 ms, Memory: 27.8 MB -BaekjoonHub
Browse files Browse the repository at this point in the history
  • Loading branch information
ddubbu-dev committed Oct 28, 2024
1 parent 94756d6 commit 0283ba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### 성능 요약

메모리: 27.9 MB, 시간: 83.86 ms
메모리: 27.8 MB, 시간: 85.67 ms

### 구분

Expand All @@ -16,7 +16,7 @@

### 제출 일자

2024년 10월 28일 21:45:40
2024년 10월 28일 21:48:09

### 문제 설명

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ def solution(arr):
st = []

for n in arr:
if st and st[-1] != n:
st.append(n)
elif not st:
if (not st) or (st and st[-1] != n):
st.append(n)

return st

0 comments on commit 0283ba7

Please sign in to comment.