Skip to content

Min: 5월 2주차 문제 풀이#44

Open
gitseoyeon wants to merge 2 commits into
mainfrom
min
Open

Min: 5월 2주차 문제 풀이#44
gitseoyeon wants to merge 2 commits into
mainfrom
min

Conversation

@gitseoyeon
Copy link
Copy Markdown
Member

🔥 해결한 문제

LeetCode

프로그래머스


🚒 해결하지 못한 문제

원인 분석

  • 효율성 검사에서 시간 초과가 나는데, 여러가지 시도를 해보았지만 줄이는 법을 찾지 못했습니다.

개선 계획

  • 다른 풀이를 보며 시간 초과를 막아보겠습니다...

💡 새롭게 알게된 점


🚀 보완할 점

@gitseoyeon gitseoyeon requested a review from muncool39 May 12, 2026 10:46
@gitseoyeon gitseoyeon self-assigned this May 12, 2026
Copy link
Copy Markdown
Member

@muncool39 muncool39 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스터디 고생하셨습니다!! 이번주도 화이팅!

Comment on lines +15 to +23
for(int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
int num = hm.get(c);
if(i + 1 < s.length() && hm.get(s.charAt(i + 1)) > num) {
sum += hm.get(s.charAt(++i)) - num;
continue;
}
sum += num;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

풀이가 깔끔한 것 같아요..! 배워갑니다 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants