Skip to content

Conversation

@chanani
Copy link

@chanani chanani commented Dec 30, 2025

์•ˆ๋…•ํ•˜์„ธ์š” ! ์‚ฌ๋‹ค๋ฆฌ ๊ฒŒ์ž„ 3๋‹จ๊ณ„ ๋ฆฌ๋ทฐ ์š”์ฒญ๋“œ๋ฆฝ๋‹ˆ๋‹ค ! ๐Ÿ™‡โ€โ™‚๏ธ

๊ณผ์ œ ์ง„ํ–‰ ๋‚ด์šฉ

  • ํ…Œ์ŠคํŠธ ๊ฐ€๋Šฅํ•œ ๋ถ€๋ถ„๊ณผ ์–ด๋ ค์šด ๋ถ€๋ถ„์„ ์ฐพ์•„ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ตœ๋Œ€ํ•œ ์ŠคํŠธ๋ฆผ์„ ํ†ตํ•ด ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋ ค๊ณ  ๋…ธ๋ ฅํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉฐ, ๋žŒ๋‹ค๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ๋ชปํ–ˆ๋Š”๋ฐ ๋ฆฌ๋ทฐ ์š”์ฒญ ํ›„ ์ˆ˜์ •ํ•  ๋ถ€๋ถ„์„ ์ฐพ์•„๋ณด๋ ค๊ณ ํ•ฉ๋‹ˆ๋‹ค.

Copy link
Contributor

@javajigi javajigi left a comment

Choose a reason for hiding this comment

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

3๋‹จ๊ณ„ ๊ตฌํ˜„ ๐Ÿ‘
ํ”ผ๋“œ๋ฐฑ ๋ช‡ ๊ฐœ ๋‚จ๊ฒผ๋Š”๋ฐ์š”.
4๋‹จ๊ณ„ ๋ฆฌํŒฉํ„ฐ๋ง ์ง„ํ–‰ํ•  ๋•Œ ํ•จ๊ป˜ ๋ฐ˜์˜ํ•ด ๋ณด๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

this(users, new Lines(IntStream.range(0, height.getHeight())
.mapToObj(i -> new Line(users.size(), generate))
.collect(Collectors.toList())));
.collect(Collectors.toList())), null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Rewards๊ฐ€ null์ธ ์ƒํƒœ์˜ ์‚ฌ๋‹ค๋ฆฌ ํƒ€๊ธฐ๊ฐ€ ๊ฐ€๋Šฅํ•œ๊ฐ€?
Rewards๊ฐ€ ํ•„์ˆ˜๋ผ๋ฉด ์ด ์ƒ์„ฑ์ž๋Š” ์ œ๊ฑฐํ•ด๋„ ๋˜์ง€ ์•Š์„๊นŒ?


import java.util.Objects;

public class LadderResult {
Copy link
Contributor

Choose a reason for hiding this comment

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

๐Ÿ‘

return lines;
}

public int move(int position) {
Copy link
Contributor

Choose a reason for hiding this comment

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

๐Ÿ‘


import java.util.List;

public class FixedLadderLineGenerateStrategy implements GenerateLadderLineStrategy {
Copy link
Contributor

Choose a reason for hiding this comment

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

FixedLadderLineGenerateStrategy์„ ๊ตณ์ด ์ถ”๊ฐ€ํ•˜๊ธฐ๋ณด๋‹ค ๋žŒ๋‹ค๋กœ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋ฅผ ๊ตฌํ˜„ํ•˜๋„๋ก ํ•˜๋ฉด ์–ด๋–จ๊นŒ?

Comment on lines +20 to +25
L1 = new Lines(
new Line(4, new FixedLadderLineGenerateStrategy(true, false, true)),
new Line(4, new FixedLadderLineGenerateStrategy(false, true, false)),
new Line(4, new FixedLadderLineGenerateStrategy(true, false, false)),
new Line(4, new FixedLadderLineGenerateStrategy(false, false, true))
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
L1 = new Lines(
new Line(4, new FixedLadderLineGenerateStrategy(true, false, true)),
new Line(4, new FixedLadderLineGenerateStrategy(false, true, false)),
new Line(4, new FixedLadderLineGenerateStrategy(true, false, false)),
new Line(4, new FixedLadderLineGenerateStrategy(false, false, true))
);
Lines L1 = new Lines(
new Line(4, size -> List.of(true, false, true)),
new Line(4, size -> List.of(false, true, false)),
new Line(4, size -> List.of(true, false, false)),
new Line(4, size -> List.of(false, false, true))
);

์œ„์™€ ๊ฐ™์ด ๋žŒ๋‹ค๋กœ ๊ตฌํ˜„ํ•ด๋„ ๋˜์ง€ ์•Š์„๊นŒ?

@javajigi javajigi merged commit 4091e79 into next-step:chanani Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants