Skip to content

Commit dc28409

Browse files
committed
[level 1] Title: 가장 가까운 같은 글자, Time: 8.98 ms, Memory: 92.3 MB -BaekjoonHub
1 parent 5e26bbb commit dc28409

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

프로그래머스/1/142086. 가장 가까운 같은 글자/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 1] 가장 가까운 같은 글자 - 142086
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/142086?language=java)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/142086)
44

55
### 성능 요약
66

7-
메모리: 76.1 MB, 시간: 9.63 ms
7+
메모리: 92.3 MB, 시간: 8.98 ms
88

99
### 구분
1010

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

1717
### 제출 일자
1818

19-
2025년 05월 05일 07:33:49
19+
2025년 05월 05일 07:37:11
2020

2121
### 문제 설명
2222

프로그래머스/1/142086. 가장 가까운 같은 글자/가장 가까운 같은 글자.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
class Solution {
22
public int[] solution(String s) {
33
int[] result = new int[s.length()];
4-
result[0] = -1;
54

6-
for(int i=1; i<s.length(); i++){ //배열 원소들을 -1로 초기화
5+
for(int i=0; i<s.length(); i++){ //배열 원소들을 -1로 초기화
76
result[i] = -1;
87
}
98

0 commit comments

Comments
 (0)