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.
Yes, you are right. Since Python 3.12,
type
is a soft keyword. Overwriting soft keywords within a scope is bad practice. However, when I wrote this code,type
wasn't a soft keyword. That's a typical problem with legacy code. :)Perfectly balanced, as all things should be.
Its allways better to check like
if(name == null) throw new IllegalArgumentException("name must not be null");
even if the description says that only valid strings appear
You can use Math.abs(value) for the absolute value.
This comment is hidden because it contains spoiler information about the solution
I think this is a good solution, but there are two points to improve it.
First you can use the variable head instead of currentNode for better readability and secondly if currentNode.data is null you will get an NullPointerExceptioin because you used rightly equals(). So you have to check if currentNode.data is not not null and continue the loop if data is null.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
When you get paid for lines of code ....
I think this solution is good, because it's returns the origin List instead of a new List. It's not totally clear whether to return a new list or the original one.
any way to report this solution?
This solutions helps me totaly to understand classes in python. Its a look under the hood :D
This comment is hidden because it contains spoiler information about the solution
I think this katar is to easy for 7 kyu.
This is smart!
Loading more items...