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.
apparently omitting var is very bad practice in the js, gotta lay off the python
I was actually hoping for someone to provide original input and enrich the conversation
I don't mean to hijack the thread but what are DFS and BFS, some kind of standard pathfinding algorithms?
Is there a better/faster way to flatten the string into a list of integers?
I could not make python strip the newline characters and use list comprehension
You're my hero. I really need to get comfy with bitwise operations.
I just went around that by using // since we know it's always even
By the way that formula was bloody hard come up with
I find it elegant because of the single loop which does remind me of actual tape :)
It's a bit hard to follow exactly what is going on tho :)
Yeah, I wish it had asked for a few hundred thousand random ones up to a million instead :)
@FArekkusu - A simple "No, I'm sorry if it seemed that way" would have gone much further than another point by point tirade.
I don't mind being corrected and I don't mind admitting when I'm wrong so long as the conversation remains friendly.
On the first point - I will have to time that before I believe it.
On the second one - how about a normal programmer?
TBH I'm getting a little tired of hearing python has a special way to do X
@FArrekusu - is there some kind of animosity between us? You seem to be going out of your way to correct me and not being overly polite about it.
Then I stand corrected, thank you.
I still don't like that it puts the condition after the if_true code
I should have explained myself better:
It doesn't use the classic
condition ? if_true : if_false
format but theA = X if true else Y
which I find less explicit and much less powerful as it's only useful for value assignment, you can't for instance docondition ? x += 1 : callFoo()
I personally considered it but opted out as I find it less readable, too bad python doesn't have a true ternary operator i.e:
total += (value >= last ? value : -value)
...wait I thought it said 2 weeks not 2 years, sorry :)
This comment is hidden because it contains spoiler information about the solution
My intuition was that it would be faster but it seems it doesn't matter much at least in this case.
I will do some timing tests to get to the bottom of this.
Loading more items...