HNHacker News
TopNewBestAskShowJobs

cosminro

282 karma · joined July 4, 2011

submissionscomments
cosminro··on Problem solving strategies in a graduate real analysis course (2010)
One important aspect of leetcode/coding contest problems is that they have a input size constraint and a time limit constraint.

You can use the two to figure out what is the time complexity for a solution that would work. This simplifies the search for a solution by quite a bit. Here's a blog post about this idea (going from the input constraint to the possible algorithm): https://www.infoarena.ro/blog/numbers-everyone-should-know

Other than that, understanding a set of frequent data structures and algorithms helps a ton. Here's a short course from stanford on preparing for coding contests http://web.stanford.edu/class/cs97si/

cosminro··on Alpha Go Zero: How and Why It Works
A lot of people reading the paper miss this. I guess it's not emphasized enough.

In the first paper, the selfplay trained policy is about 1500 in elo rating, while darkforest2 a supervised trained policy from Facebook is around the same, if not better. So selfplay wasn't of much use the first time around. While in the AlphaZero paper the selfplay trained policy has about 3000 elo rating.

cosminro··on Transformer: A Novel Neural Network Architecture for Language Understanding
Attention is used in machine translation since 2014 as far as i know (Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio: Neural Machine Translation by Jointly Learning to Align and Translate) in various forms.
cosminro··on Jeff Dean’s Lecture for YC AI [video]
He is referring to this paper https://research.googleblog.com/2017/06/multimodel-multi-tas...

Where they used one model to do image recognition, speech recognition and translation in the same network.

cosminro··on Deep Forest: Towards an Alternative to Deep Neural Networks
No batch norm for LSTMs
cosminro··on Counterexample to Euler's conjecture on sums of like powers
they probably used the meet in the middle technique: http://www.infoarena.ro/blog/meet-in-the-middle
cosminro··on In the Olympics of Algorithms, a Russian Keeps Winning Gold
Here's some more background around Petr http://www.quora.com/Petr-Mitrichev/What-it-is-like-to-meet-...

And some discussion around Russia and China dominating in coding contests http://www.quora.com/Why-do-people-from-Eastern-Europe-and-C...

cosminro··on Mihai Pătraşcu 1982–2012
Any others?
cosminro··on I am a great programmer, but horrible algorithmist
It takes time and practice. You won't get the practice at work. I dealt with a network flow problem a while back and a spell correction for URLs problem before that. In the last year I haven't done anything algorithmically challenging. Most of the time you're building systems that move data around.

A common mistake is that people learn about complex algorithms and data structures, remember their names but then can't solve questions that involve just basic structures like vectors, stacks or binary search trees.

I can't learn by reading a book, I have to solve problems to really grasp a concept so my advice is this: Do topcoder.com/tc div 2 practice rooms, about 30 of them in a short time span. You'll see the solutions of other people and be able to learn from them. Also the level of div 2 problems is about the level of more difficult interview questions.

Another suggestion is to try projecteuler.net

cosminro··on Poll: Given the opportunity would you work at Google?
Picking up algorithm skills on the job is not that easy. You really have to spend some time, think problems though, play with them and internalize the learnings.

Your job in any company doesn't deal with algorithms that much but it's very useful to know them for the rare opportunities that do occur so that you make better choices.

As for YCombinator, in startups when you hit scaling issues if means your product is good and you're already on the path to success and you can hire someone with better fundamentals to help you deal with the load.

mzuckerberg (facebook ceo) Algorithm Rating: 1044 Total Earnings: $124.00 School: Harvard University http://www.topcoder.com/tc?module=MemberProfile&cr=27613...

dangelo (former facebook cto) Algorithm Rating: 2351 Total Earnings: $3,082.50 School: California Institute of Technology http://www.topcoder.com/tc?module=MemberProfile&cr=26098...

cosminro··on Mark Zuckerberg's TopCoder profile
2002 is quite a while back, the problems have steadily increased in difficulty, try and look at a div 1 set now.

Also the competition is much tougher as back then I think the site was mostly open to people from the US while now you can see US is 6th in the rankings http://www.topcoder.com/stat?c=country_avg_rating

That said as my experience goes (referred 23 inters who did internships at Google and 9 who got a full time offer), >1500 rating is pretty good at least for whiteboard coding and algorithms questions. That's not enough of course, huge gaps in other areas won't help you. But 1500 rating is a great start.

cosminro··on Mark Zuckerberg's TopCoder profile
Yup, was thinking the same. He didn't do enough contests to escape higher volatility in the low ratings.
cosminro··on Mark Zuckerberg's TopCoder profile
That rating is pretty low. Your average guy that gets hired at Google or Facebook is >1500 in rating probably.
cosminro··on Mark Zuckerberg's TopCoder profile
Adam D'Angelo's (former FaceBook CTO) TopCoder profile:

dangelo Algorithm Rating: 2351 Total Earnings: $3,082.50 School: California Institute of Technology http://www.topcoder.com/tc?module=MemberProfile&cr=26098...