Skip to content

week 38 - 40 문제풀이 완료!#213

Open
pappaya109 wants to merge 3 commits intomainfrom
sujin
Open

week 38 - 40 문제풀이 완료!#213
pappaya109 wants to merge 3 commits intomainfrom
sujin

Conversation

@pappaya109
Copy link
Contributor

Source Link

Programmers

Progress

Check off the problems you solved this week.

week 38

  • 직각삼각형 출력하기
  • 문자열 정렬하기(2)
  • 두 정수 사이의 합

week 39

  • 접두사 인지 확인하기
  • 글자 이어붙여 문자열 만들기
  • 문자열 내 p와 y의 개수

week 40

  • 문자열 곱하기
  • 원소들의 곱과 합
  • 음양 더하기

Related Issues

  • none

Checklist before creating a PR

  • 제목이 week1 형식을 따르고 있나요?
  • 본인을 Assignee로 지정했나요?
  • 관련 라벨(source, difficulty, category 등)을 모두 추가했나요?
  • Projects에 연결하지 마세요.
  • Milestone에 연결하지 마세요.
  • Development의 해당 week(issue)에 연결했나요?

@pappaya109 pappaya109 self-assigned this Feb 7, 2026
@pappaya109 pappaya109 added level0 Level of problem array Category of problem Programmers Source of problem string Category of problem math Category of problem level1 labels Feb 7, 2026
This was linked to issues Feb 7, 2026
@pappaya109 pappaya109 changed the title week 38 - 40 문제풀 week 38 - 40 문제풀이 완료! Feb 7, 2026
Copy link
Contributor

Choose a reason for hiding this comment

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

오 수진님 객체로 풀었네요~! 👍

Copy link
Contributor

@sgoldenbird sgoldenbird left a comment

Choose a reason for hiding this comment

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

수고했습니다~

Copy link
Contributor

@Insung-Jo Insung-Jo 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 +2 to +3
const plus = num_list.reduce((acc, cur) => acc + cur, 0) ** 2;
const multiple = num_list.reduce((acc, cur) => acc * cur);
Copy link
Contributor

Choose a reason for hiding this comment

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

확실히 reduce 를 쓰니까 좀 더 간단하게 작성할 수 있네요!

Copy link
Contributor

@yuj2n yuj2n left a comment

Choose a reason for hiding this comment

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

수진님 문제풀이 고생하셨습니당~👍

element += i;
prefix.push(element);
}
return prefix.includes(is_prefix) ? 1 : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

includes()를 사용해주셨군용

Comment on lines +2 to +4
const plus = num_list.reduce((acc, cur) => acc + cur, 0) ** 2;
const multiple = num_list.reduce((acc, cur) => acc * cur);
return multiple < plus ? 1 : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

reduce 방식으로 푸니 훨씬 간결하네용~👍

@@ -0,0 +1,7 @@
function solution(absolutes, signs) {
let answer = 0;
signs.forEach((item, idx) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

forEach()는 사용법을 알았다가도 자주 사용하지 않으니 까먹네요..ㅎㅎ
이렇게 쓸 수도 있군용

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

Labels

array Category of problem level0 Level of problem level1 math Category of problem Programmers Source of problem string Category of problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Week40 Week39 Week38

4 participants