If the number returned is greater than 4, then it's an error.
I did the same, but what if n = 2_147_483_647 ?
n = 2_147_483_647
This comment is hidden because it contains spoiler information about the solution
If you add or subtract zero, the result will not change, but there will be no unnecessary operation.
I also summed it up with zero.
Probably, I should use let mut rna: String = String::new()' - it will be more easier, and for i in dna.chars() {.
let mut rna: String = String::new()'
for i in dna.chars() {
Return just rna.
My GPU is sucks, and now i know why - the math
I send the number 0..=255 to 'quarter_of()' and receive the number 1..=4 in response, but there are only 12 months - can I make 'quarter_of()' notify about an error when receiving the number > 12 ?
Loading collection data...
If the number returned is greater than 4, then it's an error.
I did the same, but what if
n = 2_147_483_647
?This comment is hidden because it contains spoiler information about the solution
If you add or subtract zero, the result will not change, but there will be no unnecessary operation.
I also summed it up with zero.
Probably, I should use
let mut rna: String = String::new()'
- it will be more easier, andfor i in dna.chars() {
.Return just rna.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
My GPU is sucks, and now i know why - the math
I send the number 0..=255 to 'quarter_of()' and receive the number 1..=4 in response, but there are only 12 months - can I make 'quarter_of()' notify about an error when receiving the number > 12 ?