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.
omg wtf
This solution returns true when false is due for:
snattleField = [
[1, 0, 0, 0, 0, 1, 1, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 1, 0],
[1, 1, 0, 0, 1, 1, 1, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
[0, 1, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
Elegant but not correct!
Can I share a screengrab from my G Colaboratory to confirm this?
That is actually just- 6 lines???? HOWWWWW
WHAT, 6 LINES?!
"Everything you want, it's already there in a library somewhere"
And this is the exact representation of it.
The code you have written is exceptionally elegant
I found it. Thanx
Elegant solve. Thanks for the commented version -- most insightful.
Not sure if linking comments works here but there is a reply to MrSoto from a few years back where I expand the code with line by line explanation. Can expand on that if it's unclear, although it's been a while :-)
Would you mind to explain what your code is doing ?
Hold On !
Bro is living in the matrix
Perhaps you interpreted the question slightly differently, I took it as the ball was being thrown upwards but we were only measuring the position (with some device) every 0.1 s. Therefore, you can still assume the ball to reach a max height at some fraction not at 0.1 s, we just don't have a precise enough measurement to catch this so we're forced to round to 0.1 s because that's the precision of the device.
This is a common limitation for modeling, so I'm confused as to why this isn't a reasonable approach in your view.
Wow! So clever.
Holy crap this is insane
Loading more items...