Live data from Hacker News

Interview Street (YC S11) streamlines the search for great programmers

techcrunch.com

131–135 of 135 posts

Re: Interview Street (YC S11) streamlines the search for great programmers

#131

Earlier quoted context omitted.

Exactly. I did just this, and still my algorithm supposedly gets only 4/15 test cases correct. The algorithm is pretty simple, and I tested it extensively against the naive O(n^2) algorithm on a bunch of random test cases and it always prints the same thing, so I'm not sure where it's going wrong. My one consolation is that no one else seems to have solved it either yet... Ah, the joy and frustration of programming c…

The conversion from the given metric to the 'taxicab' metric needs some justification! The n^2 algorithm is simple enough to be solid. If your code does not give their answers, then their answers might be wrong! My work with convexity is an effort at faster code, but actually programming all that would be a bit much. I've done such things, but I got the linear programming from the old IBM Fortran Optimization Subrout…

You're right! They seem to have fixed a bug in their test program, and I'm now credited with solving that problem.

As for the justification, it shouldn't be too hard to show with a little algebra that

TaxicabDistance(x1+y1, y1-x1, x2+y2, y2-x2)/2 = ChebyshevDistance(x1, y1, x2, y2)

where

ChebyshevDistance(x1, y1, x2, y2) = max(|x1-x2|,|y1-y2|) and

TaxicabDistance(x1, y1, x2, y2) = |x1-x2|+|y1-y2|.

Re: Interview Street (YC S11) streamlines the search for great programmers

#132
post #69

Earlier quoted context omitted.

From their demo test: Your test consists of 1 programming problem to be solved in Java, C++, C#, C, Javascript, Pascal, Perl, PHP, Python, Ruby or VB.NET,

That's correct. On both of these sites, I may use C, C++, C#, Java, Python, PHP, Ruby, or Perl. On Interviewstreet I may also use Haskell. On Codility I may also use Javascript, Pascal, or VB.NET. "The language of your choice" would probably include Algol-68, Lua, more than zero Lisps, D, and Brainfuck.

and on Coderloop you can also use Fortran, Erlang, Objective-C, Lua, Javascript, Scala, OCaml, Clojure and Common-Lisp :)

http://www.coderloop.com/home/guidelines

Re: Interview Street (YC S11) streamlines the search for great programmers

#133

Earlier quoted context omitted.

The conversion from the given metric to the 'taxicab' metric needs some justification! The n^2 algorithm is simple enough to be solid. If your code does not give their answers, then their answers might be wrong! My work with convexity is an effort at faster code, but actually programming all that would be a bit much. I've done such things, but I got the linear programming from the old IBM Fortran Optimization Subrout…

You're right! They seem to have fixed a bug in their test program, and I'm now credited with solving that problem. As for the justification, it shouldn't be too hard to show with a little algebra that TaxicabDistance( x1 + y1 , y1 - x1 , x2 + y2 , y2 - x2 )/2 = ChebyshevDistance( x1 , y1 , x2 , y2 ) where ChebyshevDistance( x1 , y1 , x2 , y2 ) = max(| x1 - x2 |,| y1 - y2 |) and TaxicabDistance( x1 , y1 , x2 , y2 ) =…

There's a nice justification in

http://news.ycombinator.com/item?id=2865396

So, we have a linear transformation from R^2 into R^2 with matrix

     1   1

     1  -1
So, the rows are orthogonal! And the columns! It's not quite an orthonormal matrix where its transpose is its inverse because the length of each row, column is not 1, but it's 'close' to orthonormal.

So, except for a scalar multiple, this linear transformation has to be an 'isometry', that is, preserves lengths and angles, lengths in the usual metric in R^2. So, this linear transformation starts to 'smell good'!

Looking, for the given metric, consider the 'unit circle', that is, all points distance 1 from the origin. Then consider the image of these points under this linear transformation. That 'circle' is a square with diagonal (1,1) to (-1,-1). Then its image is a 'diamond', that is, a square with diagonal, say, (-2,0) to (2,0). So, except for a scalar 2, we have preserved distances. That is, our linear transformation is 1-1 between a 'circle' in one metric and a circle in the other metric. That's close enough to a proof for gumment work!

Nice.

Be wise, generalize: So we have taken a nasty problem with an n^2 solution, or some tricky, solution iterating with convexity, and with a simple linear transformation turned the problem into a 'decomposition' on the two coordinates separately. So, where else can we take a challenging optimization problem, stuff a linear transformation inside the problem, and get a much simpler problem? Hmm ....

Re: Interview Street (YC S11) streamlines the search for great programmers

#134
If I may add my 2 cents - the design interface of this site is all over the place ... honestly it's such an eyesore seeing they can't even make the footer stick to the bottom of the page. Then there is the Terms of Service page -- such an embarrassment!

Re: Interview Street (YC S11) streamlines the search for great programmers

#135
post #105
post #73

This is a perfect example of cargo cult thinking. Just because you're a tech start-up doesn't automatically put you on the same level with Google and Microsoft. Both of those companies have products which require a team of developers with understanding of computational complexities of algorithms, data structures and etc (think of Windows, Visual Studio IDE, Google Chrome/OS, Bing/Google search engines). I'm yet to fi…

Working at Dropbox would almost certainly require "advanced knowledge of computational complexities of algorithms, data structures and etc".

I hope you didn't mean scalability when you wrote that.
Post reply on HN