Skip to content

[meteorqz6] WEEK 03 Solutions - #2959

Merged
parkhojeong merged 2 commits into
DaleStudy:mainfrom
meteorqz6:week3
Nov 29, 2026
Merged

parkhojeong merged 2 commits into
DaleStudy:mainfrom
meteorqz6:week3

Conversation

@meteorqz6

@meteorqz6 meteorqz6 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

๋‹ต์•ˆ ์ œ์ถœ ๋ฌธ์ œ

์ž‘์„ฑ์ž ์ฒดํฌ ๋ฆฌ์ŠคํŠธ

  • Projects์˜ ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ(โ–ผ)์„ ๋ˆŒ๋Ÿฌ ํ™•์žฅํ•œ ๋’ค, Week๋ฅผ ํ˜„์žฌ ์ฃผ์ฐจ๋กœ ์„ค์ •ํ•ด์ฃผ์„ธ์š”.
  • ๋ฌธ์ œ๋ฅผ ๋ชจ๋‘ ํ‘ธ์‹œ๋ฉด ํ”„๋กœ์ ํŠธ์—์„œ Status๋ฅผ In Review๋กœ ์„ค์ •ํ•ด์ฃผ์„ธ์š”.
  • ์ฝ”๋“œ ๊ฒ€ํ† ์ž 1๋ถ„ ์ด์ƒ์œผ๋กœ๋ถ€ํ„ฐ ์Šน์ธ์„ ๋ฐ›์œผ์…จ๋‹ค๋ฉด PR์„ ๋ณ‘ํ•ฉํ•ด์ฃผ์„ธ์š”.

๊ฒ€ํ† ์ž ์ฒดํฌ ๋ฆฌ์ŠคํŠธ

Important

๋ณธ์ธ ๋‹ต์•ˆ ์ œ์ถœ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋‹ค๋ฅธ ๋ถ„ PR ํ•˜๋‚˜ ์ด์ƒ์„ ๋ฐ˜๋“œ์‹œ ๊ฒ€ํ† ๋ฅผ ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค!

  • ๋ฐ”๋กœ ์ด์ „์— ์˜ฌ๋ผ์˜จ PR์— ๋ณธ์ธ์„ ์ฝ”๋“œ ๋ฆฌ๋ทฐ์–ด๋กœ ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”.
  • ๋ณธ์ธ์ด ๊ฒ€ํ† ํ•ด์•ผํ•˜๋Š” PR์˜ ๋‹ต์•ˆ ์ฝ”๋“œ์— ํ”ผ๋“œ๋ฐฑ์„ ์ฃผ์„ธ์š”.
  • ํ† ์š”์ผ ์ „๊นŒ์ง€ PR์„ ๋ณ‘ํ•ฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์Šน์ธํ•ด์ฃผ์„ธ์š”.

@dalestudy

dalestudy Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

๐Ÿค– AI ๋ฆฌ๋ทฐ(์•Œ๊ณ ๋ฆฌ์ฆ˜ ํŒจํ„ด, ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„, ํ•™์Šต ํ˜„ํ™ฉ) ๊ฒฐ๊ณผ๋Š” Checks ํƒญ์—์„œ ๋ณผ ์ˆ˜ ์žˆ์–ด์š”.

@ehlung ehlung left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

๋‘ ๋ฌธ์ œ ๋ชจ๋‘ ์ €๋ณด๋‹ค ๊ฐ„๊ฒฐํ•˜๊ณ  ํšจ์œจ์ ์œผ๋กœ ํ‘ธ์…”์„œ ๋งŽ์ด ๋ฐฐ์› ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ ์ฃผ์ฐจ๋„ ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

* @return {boolean}
*/
var isPalindrome = function (s) {
const str = s.toLowerCase();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

์ฒ˜์Œ์— ์ „๋ถ€ ์†Œ๋ฌธ์ž๋กœ ๋ฐ”๊ฟ” ๋‘๋‹ˆ๊นŒ ์•„๋ž˜ ๋ฐ˜๋ณต๋ฌธ์—์„œ ๋Œ€๋ฌธ์ž ๋ฒ”์œ„๋ฅผ ๋”ฐ๋กœ ๊ฒ€์‚ฌํ•  ํ•„์š”๊ฐ€ ์—†์–ด์„œ ๊น”๋”ํ•˜๋„ค์š”! ์ €๋Š” ๋Œ€๋ฌธ์ž์ธ์ง€ ํ™•์ธํ•œ ๋’ค ๊ธ€์ž๋งˆ๋‹ค ์†Œ๋ฌธ์ž๋กœ ๋ฐ”๊ฟ” ์ฃผ๋А๋ผ ๋ถ„๊ธฐ๊ฐ€ ํ•˜๋‚˜ ๋” ์ƒ๊ฒผ๋Š”๋ฐ, ์ด๋ ‡๊ฒŒ ๋จผ์ € ๋ฐ”๊พธ๋Š” ๊ฒŒ ๋” ๊ฐ„๋‹จํ•œ ๊ฒƒ ๊ฐ™์•„์š” ๐Ÿ‘๐Ÿป

Comment on lines +18 to +19
const reversedText = answer.split("").reverse().join("");
return answer === reversedText;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ํ†ต์งธ๋กœ ๋’ค์ง‘์–ด์„œ ๋น„๊ตํ•˜๋‹ˆ๊นŒ " "์ฒ˜๋Ÿผ ๊ณต๋ฐฑ๋งŒ ์žˆ๋Š” ์ž…๋ ฅ๋„ ๋”ฐ๋กœ ์ฒ˜๋ฆฌํ•  ํ•„์š”๊ฐ€ ์—†์–ด์„œ ์ข‹์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! ์ €๋Š” ์ธ๋ฑ์Šค๋กœ ์•ž๋’ค ์ง์„ ๋น„๊ตํ•˜๋‹ค ๋ณด๋‹ˆ ๋นˆ ๊ฒฝ์šฐ๋ฅผ ๋”ฐ๋กœ ์‹ ๊ฒฝ ์จ์•ผ ํ–ˆ๋Š”๋ฐ, ์ด ๋ฐฉ์‹์œผ๋กœ ์ˆ˜์ •ํ•ด๋ณผ๊ฒŒ์š” ๐Ÿ‘๐Ÿป

Comment on lines +10 to +14
while (n > 0) {
const r = n % 2;
if (r == 1) cnt++;
n = Math.floor(n / 2);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2๋กœ ๋‚˜๋ˆˆ ๋‚˜๋จธ์ง€๋กœ ๋ฐ”๋กœ 1์„ ์„ธ์„œ ์ด์ง„์ˆ˜๋ฅผ ๋”ฐ๋กœ ์ €์žฅํ•˜์ง€ ์•Š์œผ๋‹ˆ ๊ณต๊ฐ„๋ณต์žก๋„๊ฐ€ O(1)์ด ๋˜๋Š”๊ตฐ์š”! ์ €๋Š” Python์—์„œ bin()์œผ๋กœ ์ด์ง„์ˆ˜ ๋ฌธ์ž์—ด์„ ๋งŒ๋“ค์–ด ์„ธ๋А๋ผ ์ž๋ฆฟ์ˆ˜๋งŒํผ(O(log n)) ๊ณต๊ฐ„์„ ๋” ์ผ๋Š”๋ฐ, ์ˆซ์ž ์ž์ฒด๋กœ ๊ณ„์‚ฐํ•˜๋Š” ๋ฐฉ์‹์ด ๊ณต๊ฐ„ ๋ฉด์—์„œ ๋” ํšจ์œจ์ ์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ๐Ÿ‘๐Ÿป

@parkhojeong
parkhojeong merged commit bd2c353 into DaleStudy:main Nov 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants