-
Notifications
You must be signed in to change notification settings - Fork 223
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
π 2λ¨κ³ - μꡬ μ¬ν μ 리 #774
Conversation
1. separator μ± μλΆλ¦¬ 2. μΌκΈμ»¬λμ λ°νκ° λ³κ²½ (Integer -> StringNumber) 3. λ§μλ‘μ§ μ€νΈλ¦Όνμ©
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.
μ΅νκ·Όλ μꡬμ¬ν λ무 μ μμ±ν΄μ£Όμ ¨μ΅λλ€. π
λ΄μ©λ§ μ΄μ§ λ€λ¬μ΄ μ£Όμλ©΄ λ κ² κ°μμ κ΄λ ¨ μ½λ©νΈλ₯Ό λλ Έμ΅λλ€.
νμΈ λΆνλ립λλ€.
public class Separator { | ||
private static final String DEFAULT_SPLIT_REGEX = "[,:]"; | ||
private static final String CUSTOM_SPLIT_REGEX = "//(.)\n(.*)"; | ||
|
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.regex.Matcher; | ||
import java.util.regex.Pattern; | ||
|
||
public class Separator { |
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.
λΆλ¦¬νλ ν΄λμ€ μμ λ₯Ό μμ±ν΄μ£Όμ
¨λ€μ π
κΌ λ§μ
κ³μ°κΈ°κ° μλμ΄λ μ¬μ©ν μ μμκ² κ°μμ
public List<StringNumber> getIntNumbers(){ | ||
return numbers; | ||
} |
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.
λ΄λΆ λ°μ΄ν° μλν π
README.md
Outdated
- [ ] κ° λ©λ΄λ 1κ°μ λ©λ΄ κ·Έλ£Ήμ νμλ‘ κ°λλ€. | ||
- [ ] κ° λ©λ΄λ 1κ° μ΄μμ λ©λ΄ μνμ νμλ‘ κ°μ ΈμΌ νλ©°, ν΄λΉ λ©λ΄ μνλ€μ λͺ¨λ λ±λ‘λ μνμ΄μ΄μΌ νλ€. | ||
- [ ] κ° λ©λ΄λ μ λν¬ν IDλ₯Ό κ°λλ€. (UUID) | ||
- [ ] κ°κ²©(price) λ null μ΄ λ μ μμΌλ©°, 0 μ΄μμ μμκ° μ΄μ΄μΌ νλ€. |
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.
쑰건 μ체λ μ¬λ°λ₯΄κ² μμ±ν΄μ£Όμ
¨μ΅λλ€.
λ€λ§, μꡬμ¬νμ κ²½μ° κ°λ°μλ§ λ³΄λκ²μ΄ μλλΌ ν΄λΉ νλ‘μ νΈλ₯Ό μ§ννλ λͺ¨λ μ΄ν΄κ΄κ³μκ° λ³΄λ λ¬Έμ μ΄λ―λ‘
nullμ΄λΌλ κΈ°μ μ μΈ ννμ μ§μνκ³ λͺ¨λκ° μ΄ν΄ν μ μλ λ¬Έμ₯μΌλ‘ μμ±ν΄μ£Όμλ©΄ μ’μ κ² κ°μμ :)
README.md
Outdated
- [ ] μ£Όλ¬Έμ μ΄ 3κ°μ§μ νμ μ΄ μ‘΄μ¬νλ€. (DELIVERY, TAKEOUT, EAT_IN) | ||
- [ ] μ£Όλ¬Έμ μ΄ 6κ°μ§μ μνκ° μ‘΄μ¬νλ€. (WAITING, ACCEPTED, SERVED, DELIVERING, DELIVERED, COMPLETED) |
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.
μ£Όλ¬Έμ νμ
κ³Ό μνλ₯Ό μ λΆλ₯ ν΄μ£Όμ
¨μ΄μ π
λ€λ§ μλμμλ νκΈκ³Ό κ°μ΄ νκΈ° ν΄μ£Όμ
¨λλ° μ¬κΈ°μλ λμΌνκ² νκΈλ‘ κ°μ΄ νκΈ°ν΄μ£Όμλ©΄ μ’μκ² κ°μ΅λλ€.
README.md
Outdated
|
||
- μ£Όλ¬Έ (Order) : μ¬μ©μκ° μ£Όλ¬Έν μν λͺ©λ‘ | ||
- [ ] μ£Όλ¬Έμ μ΄ 3κ°μ§μ νμ μ΄ μ‘΄μ¬νλ€. (DELIVERY, TAKEOUT, EAT_IN) |
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.
μ£Όλ¬Έ νμ
λ³λ‘ μ£Όλ¬Έμ΄ μ²λ¦¬λλ κ³Όμ μ μ°¨μ΄κ° μμ΅λλ€.
ν΄λΉ λ΄μ©λ μμ±ν΄μ£Όμλ©΄ μ’μκ² κ°μμ :)
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.
λ€ ν΄λΉ λ΄μ©λ€μ΄ μλμ κΈ°μ¬λμ΄ μκΈ΄ νλ°, κ°λ μ±μ μμ΄μ νμ νλͺ©μΌλ‘ μμ΄μΌ νλκ²μ΄ μꡬμ¬ν νμ μ λ νμ€νκ² λκ»΄μ§λ κ² κ°λ€μ. κ³ μΉ docs λ΄μ©μμ κΈ°μ‘΄μ μλμ μλ λ΄μ©λ€μ ν΄λΉ λͺ©λ‘μ νμ λͺ©λ‘μΌλ‘ μ΄λμμΌλ³΄μμ΅λλ€.
- [ ] κ° λ©λ΄ κ·Έλ£Ήμ μ λν¬ν IDλ₯Ό κ°λλ€. (UUID) | ||
- [ ] μ΄λ¦μ null μ΄ λ μ μλ€. | ||
|
||
- μν(Product) : ν맀λλ μν |
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.
μνμ μ‘°νλ κ°λ₯νκ±Έλ‘ λ³΄μ΄λλ° ν΄λΉ λ΄μ©λ μμ±ν΄μ£Όμλ©΄ μ’μκ² κ°μμ
README.md
Outdated
- [ ] λ©λ΄ κ°κ²© λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] λ³κ²½λλ κ°κ²©μ 0 μ΄μμ μμκ° μ΄μ΄μΌ νλ€. | ||
- [ ] κ°κ²©μ λ³κ²½μ΄ κ°λ₯νλ, ν¬ν¨ν λ©λ΄ μνμ κ°κ²©μ ν©λ³΄λ€ ν΄μ μλ€. | ||
- [ ] λ©λ΄μ νμ±ν μ¬λΆ λ³κ²½μ΄ κ°λ₯νλ€. |
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.
νμ±ν/λΉνμ±ν λΌλ ννμ μ’λ μ½κ² ν΄μ£Όμλ©΄ μ’μκ² κ°μμ :)
μ¬μ©μ μ
μ₯μμ λ©λ΄κ° λνλ¬λ€ μ¬λΌμ‘λ€ νλκ±Έ μ΄λ€ λ§λ‘ μ¨μ£Όμλ©΄ μ’μκΉμ?
README.md
Outdated
- [ ] μ£Όλ¬Έμ μνκ° λ°°λ¬μ€(DELIVERING) μ΄μ΄μΌ νλ€. | ||
- [ ] μ£Όλ¬Έμ 'μλ£(COMPLETED)' μνλ‘ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έ νμ μ΄ λ°°λ¬(DELIVERY) μΈ κ²½μ° | ||
- [ ] μ£Όλ¬Έ μνκ° λ°°λ¬μλ£(DELIVERD) κ° μλκ²½μ° λ³κ²½μ΄ λΆκ°λ₯νλ€. |
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.
κΈμ λ¬ΈμΌλ‘ ννμ΄ κ°λ₯ν λΆλΆμ κΈμ μΌλ‘ ν΄μ£Όμλ©΄ μ΄ν΄κ° μ’λ μ λ μ μμ΅λλ€. :)
μ΄ λΆλΆμ 'μ£Όλ¬Έ μνκ° λ°°λ¬μλ£ μ΄μ΄μΌ νλ€' λΌκ³ ν΄μ£Όμλ©΄ μ΄λ¨κΉμ?
README.md
Outdated
- [ ] μμ¬ ν μ΄λΈμ μμμ μλ€. | ||
- [ ] ν μ΄λΈ μ¬μ©μ€ μνλ₯Ό true λ‘ μ§μ νλ€. | ||
- [ ] μμ¬ ν μ΄λΈμ μ΄κΈ°ν ν μ μλ€. | ||
- [ ] ν μ΄λΈμ μ£Όλ¬Έμ μνκ° μλ£(COMPLETED) λΌλ©΄ μ΄κΈ°ν ν μ μλ€. | ||
- [ ] ν μ΄λΈ μλμ(numberOfGuests)λ₯Ό 0 μΌλ‘ μ§μ νλ€. | ||
- [ ] ν μ΄λΈ μ¬μ©μ€(occupied)μ μνλ₯Ό falseλ‘ μ§μ νλ€. | ||
- [ ] μμ¬ ν μ΄λΈμ μ¬μ©μ€μΈ μλμ μλ₯Ό λ³κ²½ν μ μλ€. | ||
- [ ] λ³κ²½λλ μλμλ 0μ΄μμ μ«μμ΄μ΄μΌ νλ€. | ||
- [ ] μ¬μ©μ€μΈ ν μ΄λΈμ΄ μλλ©΄ μλμλ₯Ό λ³κ²½ν μ μλ€. |
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.
μμ μ κ° λ¦¬λ·°λλ¦° λ΄μ©μ²λΌ ν μ΄λΈμ μνκ°μ μ μ ν΄μ£Όμ λ€λ©΄ μ’λ λ€λ¬μ΄ μ£Όμ€μ μμ κ² κ°μμ :)
'μμ¬ ν
μ΄λΈμ μμμ μλ€'λ ν
μ΄λΈμ μνκ° λ°λλ νμμ
λλ€.
κ°κ° μνκ° μ΄λ€κ²μΌλ‘ λ°λκ³ κ·Έμ λν μ€λͺ
μ μμ±ν΄μ£Όμλκ±Έλ‘ ν΄λ³΄μλκ² μ΄λ¨κΉμ?
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.
νκ·Όλ λΉ λ₯΄κ² λ°μ ν΄μ£Όμ ¨λ€μ π
λͺκ°μ§ μ½λ©νΈλ₯Ό λλ Έλλ° κ°λ¨ν λ΄μ©μ΄λΌ
λ€μ λ―Έμ
νμκΈ° μ μ μ λ¦¬κ° κ°λ₯νμ€κ² κ°μμ λ¨Έμ§νκ² μ΅λλ€.
κ³ μνμ ¨μ΅λλ€ π
- μ£Όλ¬Έ (Order) : μ¬μ©μκ° μ£Όλ¬Έν μν λͺ©λ‘ | ||
- [ ] μ£Όλ¬Έμ μ΄ 6κ°μ§μ μνκ° μ‘΄μ¬νλ€. | ||
- μ€λΉ(WAITTING), μλ½(ACCEPTED), μλΉλ¨(SERVED), λ°°λ¬μ€(DELIVERING), λ°°λ¬μλ£(DELIVERD), μλ£(COMPLETED) | ||
- [ ] μ£Όλ¬Έμ μμ±μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έμ μ΄ 3κ°μ§μ νμ μ΄ μ‘΄μ¬νλ€. ( λ°°λ¬(DELIVERY), ν¬μ₯(TAKEOUT), 맀μ₯μμ¬(EAT_IN)) |
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.
리뷰μ λ΅λ³ν΄μ£Όμ κ²μ νμΈνλλ° μ κ° μ€λͺ
μ΄ λΆμ‘±νλ κ² κ°μ΅λλ€ πββοΈ
κ° νμ
λ³λ‘ νλ‘μΈμ€ νλ¦μ μ€λͺ
μ μ΄κΈ°μ κ°λ¨νκ² μκ° νλ©΄ μ’κ² λ€λ μκ°μ λ§μλλ Έμ΅λλ€
(μμ : μ£Όλ¬Έ νμ
μ΄ ν¬μ₯μΈ κ²½μ° μ£Όλ¬Έ μνλ (μ€λΉ -> μλ½ -> μλΉλ¨ ->μλ£ ) μμλ‘ λ³κ²½λλ€.)
- [ ] κ°κ²©(price) μ νμλ‘ μ λ ₯λμ΄μΌ νλ©°, 0 μ΄μμ μμκ° μ΄μ΄μΌ νλ€. | ||
- [ ] λ©λ΄μ μ΄λ¦(name)μ νμλ‘ μ λ ₯λμ΄μΌ νλ©°, λΉμμ΄κ° ν¬ν¨λ μ μλ€. |
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.
μ΄μ λͺ¨λ μ΄ν΄κ΄κ³μκ° μΆ©λΆν μ΄ν΄ν μ μμκ² κ°μ΅λλ€ π
- [ ] λ©λ΄ κ°κ²© λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] λ³κ²½λλ κ°κ²©μ 0 μ΄μμ μμκ° μ΄μ΄μΌ νλ€. | ||
- [ ] κ°κ²©μ λ³κ²½μ΄ κ°λ₯νλ, ν¬ν¨ν λ©λ΄ μνμ κ°κ²©μ ν©λ³΄λ€ ν΄μ μλ€. | ||
- [ ] λ©λ΄ νλ©΄ νμ μ¬λΆ λ³κ²½μ΄ κ°λ₯νλ€. |
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.
νλ©΄ νμλ‘ λ³κ²½ν΄μ£Όμ
¨λ€μ π
νμνλ€, μ¨κΈ°λ€, νμνμ μλ€ λ±μ λΉμ·ν λ¨μ΄λ₯Ό μ νν΄μ ννν μ μμκ² κ°μμ
- [ ] λ°°μ‘μ§ μ£Όμλ νμκ°μ΄λ€. | ||
- [ ] μ 쑰건 λ§μ‘±μ, λ°°μ‘μ§λ₯Ό μ€μ νλ€. | ||
- [ ] μ£Όλ¬Έ λ΄μμ νμμ΄λ€. ν΄λΉ μ£Όλ¬Έ λ΄μλ€μ λ©λ΄μ ν¬ν¨λμ΄μλ νλͺ©μ΄μ΄μΌ νλ€. | ||
- [ ] μ£Όλ¬Έ λ΄μ μ€ νμ±ν λμ§ μμ λ©λ΄λ ν¬ν¨λ μ μλ€. |
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.
νμ μ¬λΆλ‘ λ³κ²½ν΄μ£Όμ κ±°μ λ§μΆ°μ μ¬κΈ°λ λ³κ²½ν΄μ£Όμλ©΄ μ’μκ² κ°μμ :)
- [ ] μ£Όλ¬Έμ 'λ°°λ¬μ€(DELIVERING)' μνλ‘ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έμ νμ μ΄ λ°°λ¬(DELIVERY) μ΄μ΄μΌ νλ€. | ||
- [ ] μ£Όλ¬Έμ μνκ° μλΉλ¨(SERVED) μ΄μ΄μΌ νλ€. | ||
- [ ] μ£Όλ¬Έμ 'λ°°λ¬μλ£(DELIVERD)' μνλ‘ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έμ μνκ° λ°°λ¬μ€(DELIVERING) μ΄μ΄μΌ νλ€. | ||
- [ ] μ£Όλ¬Έμ 'μλ£(COMPLETED)' μνλ‘ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έ νμ μ΄ λ°°λ¬(DELIVERY) μΈ κ²½μ° | ||
- [ ] μ£Όλ¬Έ μνκ° λ°°λ¬μλ£(DELIVERD) μΈ κ²½μ°μ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έ νμ μ΄ ν¬μ₯(TAKEOUT) μΈ κ²½μ° | ||
- [ ] μ£Όλ¬Έμ μνκ° μλΉλ¨(SERVED) μΈ κ²½μ°μ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] μ£Όλ¬Έ νμ μ΄ λ§€μ₯μμ¬(EAT_IN) μΈ κ²½μ° | ||
- [ ] μ£Όλ¬Έμ μνκ° μλΉλ¨(SERVED) μΈ κ²½μ°μ λ³κ²½μ΄ κ°λ₯νλ€. | ||
- [ ] ν΄λΉ μμ¬ ν μ΄λΈμ μνλ₯Ό μ΄κΈ°ν νλ€. |
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.
κΈμ λ¬ΈμΌλ‘ λ°κΏ μ£Όμ
¨λ€μ π
λ°μ κ°μ¬ν©λλ€
- [ ] ν μ΄λΈ μ¬μ©μ¬λΆ(occupied)μ μνλ₯Ό λ―Έμ¬μ©(false)μΌλ‘ μ§μ νλ€. | ||
- [ ] μμ¬ ν μ΄λΈμ μ¬μ©μ¬λΆ(occupied) μ μνλ₯Ό μ¬μ©μ€(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.
λ¨μ΄λ₯Ό μ¬μ©μ€, λ―Έμ¬μ©μΌλ‘ μ±νν΄μ£Όμ ¨λ€μ π
- [ ] μνμ μ΄λ¦μ νμλ‘ μ λ ₯λμ΄μΌ νλ©°, λΉμμ΄κ° ν¬ν¨λ μ μλ€. | ||
- [ ] μνμ κ°κ²©μ λ³λ κ°λ₯νλ€. | ||
- [ ] λ³κ²½λλ κ°κ²©μ νμλ‘ μ λ ₯λμ΄μΌ νλ©°, 0 μ΄μμ μμκ°λ§ κ°λ₯νλ€. | ||
- [ ] λ³κ²½ν λ©λ΄μ κ°κ²© λ³΄λ€ λ©λ΄ μν μ΄ κ°κ²©κ°μ΄ ν¬λ€λ©΄ ν΄λΉ λ©λ΄λ₯Ό λΉνμ±ν νλ€. |
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.
μκΈ°λ νμμ¬λΆμ λ§μΆ°μ λ¨μ΄λ₯Ό λ³κ²½ν΄μ£Όμλ©΄ μ’μ κ² κ°μμ :)
- [ ] ν μ΄λΈ μλμ(numberOfGuests)λ₯Ό 0 μΌλ‘ μ§μ νλ€. | ||
- [ ] ν μ΄λΈ μ¬μ©μ¬λΆ(occupied)μ μνλ₯Ό λ―Έμ¬μ©(false)μΌλ‘ μ§μ νλ€. | ||
- [ ] μμ¬ ν μ΄λΈμ μ¬μ©μ¬λΆ(occupied) μ μνλ₯Ό μ¬μ©μ€(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.
μμ¬ν μ΄λΈμ μ¬μ©μ¬λΆ μνκ°μ λν λ¨μ΄λ₯Ό μ¬μ©μ€, λ―Έμ¬μ©μΌλ‘ λ³κ²½ν΄μ£Όμ ¨λλ°
μ΄κΈ°ν λΌλ λ¨μ΄λ λ³κ²½μ΄ κ°λ₯ν κ² κ°μμ :)
- [ ] ν μ΄λΈ μ¬μ©μ¬λΆ(occupied)μ μνλ₯Ό λ―Έμ¬μ©(false)μΌλ‘ μ§μ νλ€. | ||
- [ ] μμ¬ ν μ΄λΈμ μ¬μ©μ¬λΆ(occupied) μ μνλ₯Ό μ¬μ©μ€(true) λ‘ λ³κ²½ν μ μλ€. | ||
- [ ] μμ¬ ν μ΄λΈμ μ΄κΈ°ν ν μ μλ€. | ||
- [ ] ν μ΄λΈμ μ£Όλ¬Έμ μνκ° μλ£(COMPLETED) λΌλ©΄ μ΄κΈ°ν ν μ μλ€. |
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.
μ΄ λΆλΆμ νλ² λ€μ νμΈ λΆνλλ¦¬κ² μ΅λλ€ :)
μꡬμ¬ν μ 리μ¬νμ λλ€.
μμ±νλ©΄μ κΆκΈνλ μ μ νμ¬ μꡬμ¬νμ μλΉμ€ ν΄λμ€λ₯Ό κΈ°μ€μΌλ‘ μμ±νμμ΅λλ€.
μ€μ λ‘λ μꡬμ¬νμ μ½λλ‘ κ΅¬ννλ λ°©λ²μΌλ‘ μ§νλ ν λ° λ°λλ‘ μ§νλλ κ½€λ μ μ ν? λ°©μμ΄μμ§λ§ μ΄λ €μλ μ‘°κΈ μμμ΅λλ€.
λ°λν νΌλλ°±μ μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€.