Skip to content

Conversation

@sae-bom
Copy link
Owner

@sae-bom sae-bom commented May 28, 2025

Closes: #72

@sae-bom sae-bom requested review from sehkone and sophie-cluml May 28, 2025 04:25
bigger_digit_2,
] = &digits;
(smaller_digit_1 + smaller_digit_2) * 10 + bigger_digit_1 + bigger_digit_2
pub fn minimum_sum(num: u32) -> Result<u32, &'static str> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

4 digit이 아닌 경우에 Err를 던지지 말고, 로직에 따라 값이 계산될 수 있도록 변경해주세요.

Copy link
Owner Author

Choose a reason for hiding this comment

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

다양한 범위의 숫자들도 계산할 수 있도록 로직을 변경하였습니다.

@sae-bom sae-bom force-pushed the spring/2160-constraints branch from 1da02c2 to 988e49c Compare May 29, 2025 06:04
@sae-bom sae-bom requested a review from sophie-cluml May 29, 2025 06:05
@sae-bom sae-bom merged commit 5bb8bc1 into main May 29, 2025
6 checks passed
@sae-bom sae-bom deleted the spring/2160-constraints branch May 29, 2025 07:06
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.

problem_2160.rs 에서 함수로 들어오는 값이, 함수의 타입이 허용하는 전체 범위에서 들어온다고 가정하고 풀이

3 participants