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.
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 [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
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
[Second version here](http://www.checkio.org/mission/find-sequence/publications/AQiccl135/python-3/second-find-sequence/)
More
*whew* Lots of typing. Lots of double and triple checking. But here it is.
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
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