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.
multiply 2 & add third => will never be max => explain: (a+b)c = ac+bc > ac+b
Hi! What about (a+c)b, (ab)+c for eg.? May be I don't understand the instructions...
No, it isn't.
So then... Is it really a best practice?
Yes, it does.
Doesn't this modify the Input?
Ah, good point. Tests never caught it.
.replace(' ','') replaces only the first occurrence of space, you need to use .replace(/ /g, '') here
top !
This comment is hidden because it contains spoiler information about the solution
OH!
a+bc <= (a+b)c since c>=1
Same true with the second expression
How does this even qualify it is missing
a+bc, ab+c
This comment is hidden because it contains spoiler information about the solution
It does not necessarily and it is risky to assume so. They are returned in insertion order.
[Edit: to be precise, I did not found any insurance that going that way - with the constructor - will keep the insertion order]
Loading more items...