Live data from Hacker News

The ReadyForZero Programming Challenge

readyforzero.com

31–40 of 61 posts

Re: The ReadyForZero Programming Challenge

#31

My answers in 31 lines of code: https://gist.github.com/1025860 I am either misreading the third problem's description, or I have a bug I can't for the life of me see, because the answer my program puts out is not accepted.

> #pip install python-levenshtein > from Levenshtein import distance That doesn't seem in the spirit of the challenge.

[deleted]

Re: The ReadyForZero Programming Challenge

#32

My answers in 31 lines of code: https://gist.github.com/1025860 I am either misreading the third problem's description, or I have a bug I can't for the life of me see, because the answer my program puts out is not accepted.

> #pip install python-levenshtein > from Levenshtein import distance That doesn't seem in the spirit of the challenge.

[deleted]

Re: The ReadyForZero Programming Challenge

#34
post #27

Earlier quoted context omitted.

> #pip install python-levenshtein > from Levenshtein import distance That doesn't seem in the spirit of the challenge.

Can you do it in linear time in the length of the input?

It's not hard to prove that that's impossible

Re: The ReadyForZero Programming Challenge

#37
post #17

The most difficult part was figuring out unspecified things in the problems. Generally I had to use my intuition about "otherwise this would be either impossible or too easy" to get the right answer. The first problem should be more explicit about the nature of the difference: a "typo" or non-shared could reasonably be an omission of a character, which would mean that the position of the unknown character does not ma…

Given that the point of this is to have fun and also tease out people worth hiring, having ambiguity in the problems is a good thing I think. Rarely is a real technical problem so clearly and obviously defined. So requiring a bit of thought and intuition might prove to be a good filter :)

Re: The ReadyForZero Programming Challenge

#38

My answers in 31 lines of code: https://gist.github.com/1025860 I am either misreading the third problem's description, or I have a bug I can't for the life of me see, because the answer my program puts out is not accepted.

The third problem is looking to partition the entire sequence of numbers into contiguous subsequences, all of which add up to the same sum. In other words, if the list were 23415, you subsequences could be 23, 41 and 5, all equaling 5. But the subsequences have to use up the entire string and they can't overlap.

Did anyone else do that one without writing any code?

Re: The ReadyForZero Programming Challenge

#39
post #38

Earlier quoted context omitted.

The third problem is looking to partition the entire sequence of numbers into contiguous subsequences, all of which add up to the same sum. In other words, if the list were 23415, you subsequences could be 23, 41 and 5, all equaling 5. But the subsequences have to use up the entire string and they can't overlap.

Did anyone else do that one without writing any code?

You mean with smart guessing? That's no fun!
Post reply on HN