Ah I see, would just a for loop comparing the current value vs lowest known value be less performance expensive or is there some fancy built in python function to do that?
Yes, this is a bad method because sorting is more expensive (i.e. slower and requires more computing power) than other methods, which are also simpler code-wise.
added
Ah I see, would just a for loop comparing the current value vs lowest known value be less performance expensive or is there some fancy built in python function to do that?
Yes, this is a bad method because sorting is more expensive (i.e. slower and requires more computing power) than other methods, which are also simpler code-wise.
This comment is hidden because it contains spoiler information about the solution
return, not print
return, not print
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The solution is already written.
No random tests in Java
Approved by hobs
Merged
UPDATED GROOVY TRANSLATION
Changes:
org.junit.jupiter.api.Assertions.assertEquals
instead of Groovy's built-inassert
org.junit.jupiter.api.Order
in the Test CasesGroovy Translation
Loading more items...