21
Josh Smith
Last seen 3 years ago
Member for 9 years, 7 months, 27 days
Difficulty Normal
I'm a Mechanical Engineering major that discovered that I like programming. My favorite part of programming is taking what I know and solving a problem with it. Around 2009 I started teaching myself to code using VBA in Excel, then I added a programming minor two years later.
[Second version here](http://www.checkio.org/mission/find-sequence/publications/AQiccl135/python-3/second-find-sequence/)
More
The [first one](http://www.checkio.org/mission/find-sequence/publications/AQiccl135/python-3/first-find-sequence/) wasn't as Pythonic as I have come to prefer. There was unnecessary repetition, lack of list comprehension, no documentation, etc. It also assumed that len(matrix) == len(matrix[0]) even
More
Oh. My. ............. Wow.
Did you test what score you would have gotten for a golf mission?
More
This is my first publishing in Speedy. I avoided hashlib.new() since the [docs](https://docs.python.org/3.3/library/hashlib.html#hashlib.new) said "The named constructors are much faster than new() and should be preferred."
More
......???...?? (<== me reading line 8) !!! Oh! Is that a comment (or the equivalent) in the list comprehension?
More
Nice. My code looked like this before i [tweaked it](http://www.checkio.org/mission/spaceship-landing-strip/publications/AQiccl135/python-3/first-spaceship-landing-strip/).
More
v1.1—added extra data to the grid to determine if a cell should be over-written. (lines 12 and 18)
v1.2—added a row to tall to ensure that len(set) was edited correctly for single building cases. (lines 10 and 21)
v1.3—narrowed building width to ensure space between buildings (line 16)
More
Very nice! Clear, compact, creative, and efficient. Me Likey.
One question: what does the 'r' do in the findall?
More
Nice! This solution is the complement of [Big312](http://www.checkio.org/mission/how-much-gold/publications/big312/python-3/short-solution/)'s. You added all the non-golds together, and he added all the gold-x pairs.
More
Disclaimer: this is my first Random Review, and I'm not really impressed with being forced into this, so please forgive me if my comments are a bit sharp.
****
Since this code looks a lot like my first published solution, I'm gonna guess that you were new when you wrote this. I don't know if it is i
More
NI-I-I-ICE!! Back when I wrote the solution you mentioned in your code, I didn't know about ( or didn't know how to use ) enumerate().
This solution is very clean and efficient. I'm glad that my solution helped inspire you. I hope that you continue to enjoy this site and what it teaches.
More
Oops, I left a debug statement in there. Ignore the print(current).
More
Thanks to [Blastus](http://www.checkio.org/user/Blastus/) for advice on how to clean the key. His solution was a ton simpler than how I was thinking to do it. I was trying to find just the first instance of the key, he just took off the partial key from the end.
More
I really like how you reference each cell in recall_password(). I also think you did a great job on the rotation code. I was trying to do it manually, but I couldn't figure it out. Congrats for pushing through and not taking the easy way out.
More
Wow. It looks like you and I used the same logic to get the answer.
Any particular reason you added the story to the start of your code?
More
Thanks to [Josh Lee](http://stackoverflow.com/questions/2158395/flatten-an-irregular-list-of-lists-in-python?lq=1) for the algorithm
More