Skip to content

Commit

Permalink
Merge pull request #95 from hw0603/action
Browse files Browse the repository at this point in the history
패키지 추가 시 Prefix 붙도록 Action 파일 수정
  • Loading branch information
robinjoon authored Jul 29, 2024
2 parents e71a85e + cdb3401 commit 6fa6c54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 50 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/gal-create-directories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ jobs:
NUMBERS="${BASH_REMATCH[2]}"
IFS=',' read -ra NUM_ARRAY <<< "$NUMBERS"
for NUM in "${NUM_ARRAY[@]}"; do
mkdir -p "${DIRNAME}/${NUM}"
PREFIX=({A..Z})
for i in "${!NUM_ARRAY[@]}"; do
NUM="${NUM_ARRAY[$i]}"
PREFIX_CHAR="${PREFIX[$i]}"
mkdir -p "${DIRNAME}/${PREFIX_CHAR}_${NUM}"
for GID in "${id[@]}"; do
mkdir -p "${DIRNAME}/${NUM}/${GID}"
echo -e "# Info\n[Link](https://boj.kr/${NUM})\n## 💡 풀이 방법 요약\n\n## 👀 실패 이유\n\n## 🙂 마무리" > "${DIRNAME}/${NUM}/${GID}/README.md"
mkdir -p "${DIRNAME}/${PREFIX_CHAR}_${NUM}/${GID}"
echo -e "# Info\n[Link](https://boj.kr/${NUM})\n## 💡 풀이 방법 요약\n\n## 👀 실패 이유\n\n## 🙂 마무리" > "${DIRNAME}/${PREFIX_CHAR}_${NUM}/${GID}/README.md"
done
done
Expand Down
32 changes: 0 additions & 32 deletions week13/17827/jminkkk/BOJ17827.java

This file was deleted.

14 changes: 0 additions & 14 deletions week13/17827/jminkkk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
[Link](https://boj.kr/17827)
## 💡 풀이 방법 요약

+ List에 연결 인덱스와 값을 저장
+ 최초의 사이클(이미 나온 값)이 생기는 지점을 찾기
+ 찾았다면 그 값의 인덱스(cycleIdx)를 기억

+ 질문 순회하면서 만약 값(i)이 n보다 작다면 list.get(i) = value 찾고
+ 값(i)이 n보다 크다면, list의 인덱슨느 n + (n-v) * ? 처럼 커짐

예제 예시 경우 아래처럼 됨

0 1 2 3 4 5 6 7 9 (n 미만)
2 3 4 5 6 7 8 9 (n 이상)
2 3 4 5 6 7 8 9
2 3 4 5 6 7 8 9

## 👀 실패 이유

## 🙂 마무리

0 comments on commit 6fa6c54

Please sign in to comment.