We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cabdce commit fcd3216Copy full SHA for fcd3216
1 file changed
03do-new30/202502/18 BOJ G5 다음 팰린드롬 수.md
@@ -34,10 +34,6 @@ public class Main {
34
for (int i = 0; i < mid; i++) {
35
target.setCharAt(i, newHead.charAt(i));
36
}
37
- // newHead가 head보다 길어질 수 있음. (ex. 99 -> 101)
38
- if (newHead.length() != head.length()) {
39
- target = new StringBuilder(head.substring(0, 1)).append(target);
40
- }
41
// 앞부분을 증가시킨 target으로 다시 팰린드롬을 만든다.
42
makePalindrome(target);
43
0 commit comments