Skip to content

Commit 76b8136

Browse files
committed
[level 1] Title: 같은 숫자는 싫어, Time: 60.70 ms, Memory: 26.1 MB -BaekjoonHub
1 parent 972ef02 commit 76b8136

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

프로그래머스/1/12906. 같은 숫자는 싫어/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 성능 요약
66

7-
메모리: 26.5 MB, 시간: 62.64 ms
7+
메모리: 26.1 MB, 시간: 60.70 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2026년 07월 17일 11:37:39
19+
2026년 07월 25일 15:25:29
2020

2121
### 문제 설명
2222

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
def solution(arr):
22
ans = []
33
for i in range(len(arr)-1):
4-
if arr[i] == arr[i+1]:
5-
continue
6-
else:
4+
if arr[i] != arr[i+1]:
75
ans.append(arr[i])
86
ans.append(arr[-1])
97
return ans

0 commit comments

Comments
 (0)