From 0d214bf4fdc7d8d9a7074ebd241effa274d02c76 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:50:47 +0900 Subject: [PATCH 01/13] =?UTF-8?q?=F0=9F=8C=B1:=20=EC=95=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=EC=A6=98=20=EA=B0=9C=EB=85=90=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20issue=20templates=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 해당 코드는 Github에서 직접 수정 --- ...\237\247\240algorithm---algorithm-type.md" | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ".github/ISSUE_TEMPLATE/issue---\360\237\247\240algorithm---algorithm-type.md" diff --git "a/.github/ISSUE_TEMPLATE/issue---\360\237\247\240algorithm---algorithm-type.md" "b/.github/ISSUE_TEMPLATE/issue---\360\237\247\240algorithm---algorithm-type.md" new file mode 100644 index 0000000..82c600b --- /dev/null +++ "b/.github/ISSUE_TEMPLATE/issue---\360\237\247\240algorithm---algorithm-type.md" @@ -0,0 +1,20 @@ +--- +name: "Issue : \U0001F9E0Algorithm - Algorithm Type" +about: 알고리즘 공부한 개념을 위한 issue +title: "Issue : \U0001F9E0Algorithm - Algorithm Type" +labels: '' +assignees: 4BFC + +--- + +## 🧠Algorithm - Algorithm Type +- 🧠 + +## Reference +
+ 🔗 Link + 🔗 [알고리즘 이름](https://# "알고리즘 이름/종류") +
+ +## Description +- 학습한 알고리즘을 설명. From abdc00e00e409104b447f2194d695c2df1c0a46a Mon Sep 17 00:00:00 2001 From: 4Bee <4bee.code@gmail.com> Date: Fri, 16 Aug 2024 17:48:22 +0900 Subject: [PATCH 02/13] =?UTF-8?q?=F0=9F=8C=B1:=20main=20=EB=B8=8C=EB=A0=8C?= =?UTF-8?q?=EC=B9=98=20=ED=99=98=EA=B2=BD=20=EC=B4=88=EA=B8=B0=20=EC=84=B8?= =?UTF-8?q?=ED=8C=85=EC=9D=84=20=EC=9C=84=ED=95=9C=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/source/dev/stdin | 7 +------ javascript/source/printer.js | 22 ++-------------------- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/javascript/source/dev/stdin b/javascript/source/dev/stdin index 021dfe5..b45ef6f 100644 --- a/javascript/source/dev/stdin +++ b/javascript/source/dev/stdin @@ -1,6 +1 @@ -5 -5 -2 -3 -4 -1 \ No newline at end of file +Hello, World! \ No newline at end of file diff --git a/javascript/source/printer.js b/javascript/source/printer.js index 0507832..ed51062 100644 --- a/javascript/source/printer.js +++ b/javascript/source/printer.js @@ -1,24 +1,6 @@ let path = require('path'); let inputPath = path.join(__dirname, '/dev/stdin'); // __dirname은 현재 스크립트의 디렉토리 절대경로 -let input = require('fs').readFileSync(inputPath).toString().split('\n'); +let input = require('fs').readFileSync(inputPath).toString().trim().split('\n'); //let input = require('fs').readFileSync('/dev/stdin').toString().split('\n'); //백준 제출 -console.log(input); -let arr = []; -for (let i = 0; i < input.length; i++) { - if (!arr.includes(input[i])) { - arr.push(input[i]); - } -} - -for (let i = 0; i < arr.length; i++) { - for (let j = 0; j < arr.length; j++) { - //for (let j = 0; j < arr.length - 1 - i; j++) { // 내부 반복문에서 비교 범위 감소 - if (arr[j] > arr[j + 1]) { - [arr[j], arr[j + 1]] = [arr[j + 1], arr[j]]; - } - } -} - -console.log(arr); -arr.forEach(element => console.log(element)); \ No newline at end of file +console.log('Hello, World!'); \ No newline at end of file From ab52c5a244f62b628135f0137d1051b824b9c22e Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Sat, 24 Aug 2024 13:26:04 +0900 Subject: [PATCH 03/13] =?UTF-8?q?=F0=9F=8C=B1:=20=20README=EC=9D=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub에서 직접 수정한 issue 입니다. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 11535dc..0cac9f6 100644 --- a/README.md +++ b/README.md @@ -71,3 +71,6 @@ ``` + +## Big O fucntion Graph +![image](https://github.com/user-attachments/assets/42754ed9-4029-49ee-bcea-673aa915efd0) From 3e9b9a3b2c3e92ab9dbc1c83daf2d8e10e6f5337 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:05:57 +0900 Subject: [PATCH 04/13] =?UTF-8?q?=F0=9F=8C=B1:=20printer.js=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정한 커밋입니다. --- javascript/source/printer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/source/printer.js b/javascript/source/printer.js index ed51062..ecb7c5b 100644 --- a/javascript/source/printer.js +++ b/javascript/source/printer.js @@ -1,6 +1,6 @@ let path = require('path'); let inputPath = path.join(__dirname, '/dev/stdin'); // __dirname은 현재 스크립트의 디렉토리 절대경로 -let input = require('fs').readFileSync(inputPath).toString().trim().split('\n'); -//let input = require('fs').readFileSync('/dev/stdin').toString().split('\n'); //백준 제출 +let input = require('fs').readFileSync(inputPath).toString().trim().split('\r\n'); +//let input = require('fs').readFileSync('/dev/stdin').toString().trim().split('\n'); //백준 제출 -console.log('Hello, World!'); \ No newline at end of file +console.log('Hello, World!'); From 22101fd798da0cb315b4e72679336f4dcebf39c5 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:15:07 +0900 Subject: [PATCH 05/13] =?UTF-8?q?=F0=9F=8C=B1:=20=20PR=ED=85=9C=ED=94=8C?= =?UTF-8?q?=EB=A6=BF=EC=9D=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정한 커밋입니다. --- .github/PULL_REQUEST_TEMPLATE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 25f433d..f938c57 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -11,7 +11,8 @@ 🔗 [문제번호](https://# "baekjoon 문제번호") ## 🔐풀이 과정 - + > ### ⚠Point + - 문제를 접근한 방식을 적어주세요. - 풀이과정을 적어 주세요. ## 📌Point From 89dabebdf1dfe4675286d71d07acca13e786082b Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:17:39 +0900 Subject: [PATCH 06/13] =?UTF-8?q?=F0=9F=8C=B1:=20=20PR-TEMPLATE=EB=A5=BC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정한 커밋입니다. --- .github/PULL_REQUEST_TEMPLATE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f938c57..7b22cad 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -11,11 +11,11 @@ 🔗 [문제번호](https://# "baekjoon 문제번호") ## 🔐풀이 과정 - > ### ⚠Point - - 문제를 접근한 방식을 적어주세요. + > ### 🔥Point + 문제를 접근한 방식을 적어주세요. - 풀이과정을 적어 주세요. -## 📌Point +## 📌Description - 구체적인 풀이 과정을 적어 주세요. From 6f3cde6d2fd61eec509b9d8adb173f0200fa7a72 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:18:24 +0900 Subject: [PATCH 07/13] =?UTF-8?q?=F0=9F=8C=B1:=20pr-template=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정한 커밋입니다. --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7b22cad..c69e950 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -12,7 +12,7 @@ ## 🔐풀이 과정 > ### 🔥Point - 문제를 접근한 방식을 적어주세요. + 문제를 접근한 방식을 적어주세요. - 풀이과정을 적어 주세요. ## 📌Description From e8b311bd398f25c8e6074217039be73f1fe60b07 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 23:18:37 +0900 Subject: [PATCH 08/13] =?UTF-8?q?=F0=9F=8C=B1:=20pr-template=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정된 커밋입니다. --- .github/PULL_REQUEST_TEMPLATE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c69e950..d1bf00c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,6 +1,7 @@ ## #️⃣ Number - problem Number +- T/No.N ## 🏆정답여부 @@ -11,7 +12,7 @@ 🔗 [문제번호](https://# "baekjoon 문제번호") ## 🔐풀이 과정 - > ### 🔥Point + > 🔥Point 문제를 접근한 방식을 적어주세요. - 풀이과정을 적어 주세요. From d6efb6dc8731a06b2915df679b7455e3205732a6 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 23:20:15 +0900 Subject: [PATCH 09/13] =?UTF-8?q?=F0=9F=8C=B1:=20issue=20templates=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 작성된 커밋입니다. --- .github/ISSUE_TEMPLATE/issue-number.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/issue-number.md b/.github/ISSUE_TEMPLATE/issue-number.md index 63338bf..5dd903e 100644 --- a/.github/ISSUE_TEMPLATE/issue-number.md +++ b/.github/ISSUE_TEMPLATE/issue-number.md @@ -12,6 +12,8 @@ assignees: 4BFC ## 🌐문제 링크 🔗 [문제번호](https://# "baekjoon 문제번호") +> 참고자료 + 🔗 [참고자료](https:# "참고자료") ## 📌Point - 오류 원인을 찾아내고 문제 해결 From db0dc9c56de93b8ea08143078672672b13b54db4 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 26 Aug 2024 23:20:54 +0900 Subject: [PATCH 10/13] =?UTF-8?q?=F0=9F=8C=B1:=20pr-template=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정된 커밋입니다. --- .github/PULL_REQUEST_TEMPLATE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d1bf00c..416b6bd 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -10,6 +10,8 @@ ## 🌐문제 링크 🔗 [문제번호](https://# "baekjoon 문제번호") +> 참고자료 + 🔗 [1931 참고자료](https://yong-nyong.tistory.com/21 "1931 참고자료") ## 🔐풀이 과정 > 🔥Point From 082ac22ec21cb8f5db351fc0049e9057192d9489 Mon Sep 17 00:00:00 2001 From: 4Bee <109135643+4BFC@users.noreply.github.com> Date: Mon, 2 Sep 2024 20:39:24 +0900 Subject: [PATCH 11/13] =?UTF-8?q?=F0=9F=8C=B1:=20=20README=EC=9D=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Github에서 수정한 커밋입니다. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0cac9f6..377b094 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ - main은 기본 세팅이 되어 있기 때문에 pr이나 외부 push가 이루어져선 안된다. - recently - 최근 풀어본 문제가 담겨 있는 브렌치다. +- problem Number(ex. 2557) + - 내가 풀고 있는 문제이다. 브렌치는 문제 번호이다. +- problem Number retry(N)(ex. 2557 retry(N)) + - 내가 **다시** 풀고 있는 문제이다. 브렌치는 문제 번호와 retry 횟수이다. --- From 6a023c270682a209b45764d28f84e7dee9a30b5b Mon Sep 17 00:00:00 2001 From: 4Bee <4bee.code@gmail.com> Date: Fri, 6 Sep 2024 17:33:48 +0900 Subject: [PATCH 12/13] =?UTF-8?q?=F0=9F=9A=A9:=20=EB=AC=B8=EC=9E=90?= =?UTF-8?q?=EC=97=B4=EC=9D=98=20=EA=B8=B8=EC=9D=B4=EB=A1=9C=20sort?= =?UTF-8?q?=EB=A5=BC=20=ED=99=9C=EC=9A=A9=ED=95=B4=EC=84=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=ED=95=98=EB=8A=94=20=EB=B0=A9=EB=B2=95=EC=9D=80=20?= =?UTF-8?q?=EC=95=8C=EA=B2=A0=EC=9C=BC=EB=82=98,=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=EA=B0=92=20=EC=A0=9C=EA=B1=B0=EC=99=80=201=EC=B0=A8=EC=A0=81?= =?UTF-8?q?=EC=9D=B8=20=EC=A0=95=EB=A0=AC=20=EC=9D=B4=ED=9B=84=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=EB=90=9C=20=EA=B0=92=20=EA=B8=B0=EC=A4=80=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=9E=AC=EC=A0=95=EB=A0=AC=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=B0=A9=EB=B2=95=EC=97=90=20=EB=8C=80=ED=95=B4=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=EB=A5=BC=20=ED=92=80=EC=96=B4=EB=82=B4=EC=A7=80=20?= =?UTF-8?q?=EB=AA=BB=ED=96=88=EC=9D=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/source/dev/stdin | 15 ++++++++++++++- javascript/source/printer.js | 12 +++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/javascript/source/dev/stdin b/javascript/source/dev/stdin index b45ef6f..56323b9 100644 --- a/javascript/source/dev/stdin +++ b/javascript/source/dev/stdin @@ -1 +1,14 @@ -Hello, World! \ No newline at end of file +13 +but +i +wont +hesitate +no +more +no +more +it +cannot +wait +im +yours \ No newline at end of file diff --git a/javascript/source/printer.js b/javascript/source/printer.js index ecb7c5b..fecf679 100644 --- a/javascript/source/printer.js +++ b/javascript/source/printer.js @@ -2,5 +2,15 @@ let path = require('path'); let inputPath = path.join(__dirname, '/dev/stdin'); // __dirname은 현재 스크립트의 디렉토리 절대경로 let input = require('fs').readFileSync(inputPath).toString().trim().split('\r\n'); //let input = require('fs').readFileSync('/dev/stdin').toString().trim().split('\n'); //백준 제출 +let N = input.shift(); +let arr = input; -console.log('Hello, World!'); +//BFAL +arr.sort((a, b) => { + // return a.length - b.length; + if (a.length !== b.length) { + return a.length - b.length; + } +}); + +arr.forEach(el => console.log(el)) From ff278d2b1fd59f8620cf33728e215063cc8b44bc Mon Sep 17 00:00:00 2001 From: 4Bee <4bee.code@gmail.com> Date: Fri, 6 Sep 2024 17:38:59 +0900 Subject: [PATCH 13/13] =?UTF-8?q?=F0=9F=9A=A9:=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=EB=A5=BC=20new=20Set=EC=9D=84=20=ED=86=B5?= =?UTF-8?q?=ED=95=B4=20=ED=95=B4=EA=B2=B0=ED=95=98=EA=B3=A0=20localCompare?= =?UTF-8?q?=EB=A5=BC=20=EC=82=AC=EC=9A=A9=ED=96=88=EC=A7=80=EB=A7=8C=20?= =?UTF-8?q?=EC=9D=B4=20=EC=97=AD=ED=95=A0=EC=9D=B4=20=EC=A0=95=ED=99=95?= =?UTF-8?q?=ED=9E=88=20=EB=AC=B4=EC=97=87=EC=9D=B8=EC=A7=80=20=EC=95=8C?= =?UTF-8?q?=EC=95=84=EB=B3=BC=20=ED=95=84=EC=9A=94=EA=B0=80=20=EC=9E=88?= =?UTF-8?q?=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/source/printer.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/javascript/source/printer.js b/javascript/source/printer.js index fecf679..42565b7 100644 --- a/javascript/source/printer.js +++ b/javascript/source/printer.js @@ -3,12 +3,16 @@ let inputPath = path.join(__dirname, '/dev/stdin'); // __dirname은 현재 스 let input = require('fs').readFileSync(inputPath).toString().trim().split('\r\n'); //let input = require('fs').readFileSync('/dev/stdin').toString().trim().split('\n'); //백준 제출 let N = input.shift(); -let arr = input; +let arr = [... new Set(input)]; //BFAL +// new Set +// localCompare arr.sort((a, b) => { // return a.length - b.length; - if (a.length !== b.length) { + if (a.length === b.length) { + return a.localeCompare(b); + } else { return a.length - b.length; } });