Skip to content

week45 풀었습니다. #225

Open
sgoldenbird wants to merge 3 commits intomainfrom
sgoldenbird
Open

week45 풀었습니다. #225
sgoldenbird wants to merge 3 commits intomainfrom
sgoldenbird

Conversation

@sgoldenbird
Copy link
Contributor

@sgoldenbird sgoldenbird commented Mar 9, 2026

Source Link

Programmers

Progress

Check off the problems you solved this week.

  • 숫자 찾기
  • 문자열 바꿔서 찾기
  • 핸드폰 번호 가리기

Related Issues

  • none

Checklist before creating a PR

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

@sgoldenbird sgoldenbird self-assigned this Mar 9, 2026
@sgoldenbird sgoldenbird added level0 Level of problem programmers Source of problem level1 labels Mar 9, 2026
@sgoldenbird sgoldenbird linked an issue Mar 9, 2026 that may be closed by this pull request
18 tasks
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.

시은님 문제풀이 수고하셨습니다~

@@ -0,0 +1,6 @@
function solution(phone_number) {
const hidden = "*".repeat(phone_number.length - 4);
Copy link
Contributor

Choose a reason for hiding this comment

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

repeat() 사용하셨군용~👍

@@ -0,0 +1,6 @@
function solution(phone_number) {
const hidden = "*".repeat(phone_number.length - 4);
const last = phone_number.slice(-4);
Copy link
Contributor

Choose a reason for hiding this comment

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

이 방법을 생각못했는데 간단하게 해결하셨네용!

@@ -0,0 +1,6 @@
function solution(num, k) {
const stringNum = String(num);
const stringK = String(k);
Copy link
Contributor

Choose a reason for hiding this comment

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

k도 형변환 해주는 게 더 명시적이어서 좋은 것 같네용!

@sgoldenbird sgoldenbird force-pushed the main branch 16 times, most recently from 4480911 to 8f94f7d Compare March 14, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level0 Level of problem level1 programmers Source of problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Week45

2 participants