Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
low amount of lines but time complexity higher than mine :P
Thanks, I´m blind sometimes...
It seems you still don't get it. Change back the function's name from
has_subpattern
to the originalformat_money
.Don't change the function's name, it should be
format_money
, this is the initial code:You've changed it to
has_subpattern
and the tests can't find it with that name.I´m getting cannot import name 'format_money' in test.But locale imported. On my IDE all fine.
Enabled in this fork
the sorting approach is too much extra work.
good
Good for Python practice for formatting.
Nice
Ok sooo for task with Large array what is the type of Sort you advises ?
Eh, no? There's nothing more to this than the simple condition in this solution...
Good solution, but there are more actions happening under the hood, even if the entry looks concise
The sorting approach is generally less efficient for this specific task, especially when dealing with large arrays, due to the higher time complexity of the sorting algorithm. The looping approach focuses on finding only the two smallest numbers, resulting in better performance for this particular requirement.
how dose the code runs? your code gives me sort is not a function 😕
Loading more items...