-
Notifications
You must be signed in to change notification settings - Fork 743
๐ 3๋จ๊ณ - ์ฌ๋ค๋ฆฌ(๊ฒ์ ์คํ) #2432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
chore : ์ฝ๋ ์ค๋ง์ถค
javajigi
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FixedLadderLineGenerateStrategy์ ๊ตณ์ด ์ถ๊ฐํ๊ธฐ๋ณด๋ค ๋๋ค๋ก ํ ์คํธ ์ฝ๋๋ฅผ ๊ตฌํํ๋๋ก ํ๋ฉด ์ด๋จ๊น?
| 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)) | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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)) | |
| ); |
์์ ๊ฐ์ด ๋๋ค๋ก ๊ตฌํํด๋ ๋์ง ์์๊น?
์๋ ํ์ธ์ ! ์ฌ๋ค๋ฆฌ ๊ฒ์ 3๋จ๊ณ ๋ฆฌ๋ทฐ ์์ฒญ๋๋ฆฝ๋๋ค ! ๐โโ๏ธ
๊ณผ์ ์งํ ๋ด์ฉ