Skip to content

Conversation

Kimdongui
Copy link
Member

문제 설명

문자열 s에는 공백으로 구분된 숫자들이 저장되어 있습니다. str에 나타나는 숫자 중 최소값과 최대값을 찾아 이를 "(최소값) (최대값)"형태의 문자열을 반환하는 함수, solution을 완성하세요.
예를들어 s가 "1 2 3 4"라면 "1 4"를 리턴하고, "-1 -2 -3 -4"라면 "-4 -1"을 리턴하면 됩니다.

제한 조건
  • s에는 둘 이상의 정수가 공백으로 구분되어 있습니다.
입출력 예
s return
"1 2 3 4" "1 4"
"-1 -2 -3 -4" "-4 -1"
"-1 -1" "-1 -1"

sxs770
sxs770 previously approved these changes Jan 2, 2023
@sxs770 sxs770 self-requested a review January 2, 2023 12:14
@Kimdongui Kimdongui dismissed sxs770’s stale review January 2, 2023 12:14

다시 해주세요!

Copy link
Collaborator

@Chohyungun Chohyungun left a comment

Choose a reason for hiding this comment

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

으아아

Copy link
Contributor

@HereYeseo HereYeseo left a comment

Choose a reason for hiding this comment

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

좋은 코드인 것 같습니다.

@Kimdongui Kimdongui merged commit 5d898f5 into main Jan 2, 2023
@Kimdongui Kimdongui deleted the programmers-1 branch January 2, 2023 12:18
@ChangZero ChangZero mentioned this pull request Jan 6, 2023
@HereYeseo HereYeseo mentioned this pull request Jan 9, 2023
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.

7 participants