Skip to content

[DaleSeo] WEEK 02 Solutions - #2938

Open
DaleSeo wants to merge 1 commit into
DaleStudy:mainfrom
DaleSeo:DaleSeo/week2
Open

DaleSeo wants to merge 1 commit into
DaleStudy:mainfrom
DaleSeo:DaleSeo/week2

Conversation

@DaleSeo

@DaleSeo DaleSeo commented Nov 20, 2026

Copy link
Copy Markdown
Member

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

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

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

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

Important

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

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

@dalestudy

dalestudy Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the rust label Nov 20, 2026
products[i] *= after;
after *= nums[i];
}

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.

๋Ÿฌ์ŠคํŠธ ๋ฌธ๋ฒ•์€ ์ฒ˜์Œ๋ณด๋Š”๋ฐ ์ƒ๊ฐ๋ณด๋‹ค ๋˜๊ฒŒ ๋‚ฏ์„ค๊ตฐ์š”!

์ž์‹ ๊ธฐ์ค€ ์ขŒ์šฐ๋กœ๋‚˜๋ˆ ์„œ ๋ˆ„์ ๊ณฑ์„ ์ตœ์ ํ™”ํ•œ๋ฐฉ๋ฒ• ๋ฐฐ์›Œ๊ฐ‘๋‹ˆ๋‹ค~

// TC: O(n)
// SC: O(1)
impl Solution {
pub fn product_except_self(nums: Vec<i32>) -> Vec<i32> {

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.

๐Ÿ‘ rust๊ฐ€ ํ™•์‹คํžˆ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ ํ’€์ด์—์„œ ์ œ์•ฝ ์กฐ๊ฑด์„ ์ฝ”๋“œ ๋‚ด์—์„œ ๋ฌธ์ œ์˜ ์ œ์•ฝ ์กฐ๊ฑด(32-bit integer)์„ ๋…น์—ฌ๋‚ด๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค๋Š”๊ฒŒ ๋ˆˆ์— ๋„๋„ค์š”! rust ๋ฌธ๋ฒ•์„ ๋ชจ๋ฅด์ง€๋งŒ, ํ’€์ด๋งŒ ๋ณด๊ณ ๋„ ๋ฌธ์ œ์˜ ์ œ์•ฝ ์กฐ๊ฑด์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฑธ ์•Œ ์ˆ˜ ์žˆ๋Š”๊ฒŒ ๋ณด๊ธฐ ์ข‹๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

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