File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
프로그래머스/1/142086. 가장 가까운 같은 글자 Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 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
1616
1717### 제출 일자
1818
19- 2025년 05월 05일 07:33:49
19+ 2025년 05월 05일 07:37:11
2020
2121### 문제 설명
2222
Original file line number Diff line number Diff line change 11class 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
You can’t perform that action at this time.
0 commit comments