171 points · by uptownfunk · 3y ago · 141 comments
[1] https://blog.pragmaticengineer.com/google-coding-competition...
These views reflect that Google Code Jam was a very significant source for recruitment. In contrast, when I searched about whether Code Jam was a significant part of Google's recruitment strategy, one of the top results on Reddit on r/cscareerquestions really underplayed the recruitment part, by non-Google employees giving advice about it: https://www.reddit.com/r/cscareerquestions/comments/p7ioku/w...
The r/cscareerquestions commenters there could still have a point that it was more direct to take other approaches to applying to the company instead of Code Jam, but the general dismissive attitude of the top-upvoted commenter (e.g.: "No benefits. If anything, might even be harder to get interviews cause the guys grinding for those contests don't have time to make a proper resume.") really overemphasized an opinion based on speculation, instead of taking a more balanced view that recognized that Google Code Jam was run with a large motivation to recruit developers.
Google has a very standardized recruitment procedure. Once you're in the pipeline, you're judged with the same standards as everybody else (algo interview, system design...). Whether you're a Code Jam champion or not. Where Code Jam could help is to get contacted by a recruiter, but a simple referral could be enough for that, so it's not that hard to enter their recruitment pipeline.
Also, Code Jam problems are much harder than what you'd get in a coding interview, so it's not the best use of your preparation time to land a job at Google. Leetcode problems are more similar to what they ask.
Google, you have just disappointed and pissed off many of the best algorithmic programmers in the world. They will not forget this. Is that who you want to be?
Why is running a competition really well for 15 years something to be pissed off about? Why not be dissapointed at Microsoft, Amazon and Apple for not running their own competitions, as well or better?
I could imagine that with the advent of the likes of GPT, Google may have concluded that the competition has lost its utility in identifying talented coders to recruit.
I am sad that codejam is gone. I'm not certain that a skeleton crew would have been good for the skeleton crew.
Google Code Jam and TCO were the two biggest onsite competitive programming event that's not targeted at students.
This is a huge blow to the sport.
The web portal is awful and barely works. The desktop client looks like it's from the 2000s and also barely works. To my knowledge the system had weird constraints about input size, and instead of reading from stdin like every other serious website they have the weird "write it in a class with this method signature" format.
Personally, the problem quality didn't compare to websites like Atcoder and most Codeforces contests, and i feel like most people (me included) don't enjoy the "hack phase" format. Maybe if i could bring myself to actually compete more often, my mind would change on these things.
Coding problems while taking of edge-cases for later was really fun.
They even implemented it slightly better: instead of having a separate challenge phase, you can “lock” your solution for a particular problem at any time (which means you cannot resubmit it) and then view other people's solutions, and challenge them with custom input.
This was, of course, a couple of years before Facebook was even thought of.
It is like any other sport or Olympiad, it involves solving faster, accurately and potentially of problems you haven't seen before. There is no direct correlation between competitive programming like CodeJam/ICPC and leetcode. They don't target the same audience at all. I couldn't get to the top of these but I do admire people who do, they are some of the absolutely brilliant people I have worked with. I have seen how they employ their rapid understanding, breaking down and debugging skills in real world programming as well.
Coming to this argument about even algo/DS interviews, could you suggest an algorithmic interview replacement, that is not time consuming, is objective, language agnostic and scales well with the size of a company? It is not like these companies are not having past experience, system design interviews. They do have them as well but they cover subset of what all you would want to check.
I would have expected to read more reasonable opinion on HN.
Firstly the interview should be structured with an aim to maximize correlation between success on the interview and success on the job. If you’re not thinking along these lines you aren’t even playing the game.
For most startups, the right criteria to screen for is pace and quality of code, plus work ethic.
You can ask a relatively easy coding problem, whether it be algorithmic/data structure, or more real world, that 99% of people will be able to solve, but still apply a high bar for what’s considered passing. Can they code the obvious solution quickly and effortlessly? I dont care at all if you’re able to produce a solution, I care about the path to that solution.
Screening for the straight arbitrary algorithmic/design diagram problems has hordes of people who have trained to the test. At scale hiring these people may work through selecting for people with decent work ethic to grind problems, but you’re not going to get consistently great people this way. Lots of false negatives and positives.
Having hired over 100 engineers in the bay area, judging by coding competency first was always more effective than judging based on quick shot leetcode/algorithmic aptitude. You can easily grind canned algorithms to pass a leetcode style interview, but you can’t fake coding proficiency.
If you’re hiring for DB or ML developers, obviously theory is more important. But 90+% of you are not
Top level programming competitions are like top level spelling bees. You need to have as many algorithms memorized as possible in code. That’s right. You need to be able to recite code by memory to pump out algorithm functions as quickly as possible since libs aren’t allowed generally. This isn’t a useful skill.
>I print out 10-15 code snippets (not just code, but also UNIX commands, regular expressions, SQL queries and many other things). I then go through and ask: what does this snippet do, how does it work, are there any bugs, etc.? Reading code (as opposed to writing) means I can cover a lot of ground extremely quickly, spending no more than a minute or two on each problem.
The kind of interview you describe is something Stripe also does, but I have seen even this resulting in non objective selection criterias. Like one Stripe employee told me that they prefer if someone uses a map rather than iterating on a list, as it is cleaner. While I agree with the sentiment; I don't think it is a good filter to add in the interview.
What is the difference that you see between these sorts of algorithm puzzle contests?
Is there some reason that people who are good at one contest would be bad at another, similar contest?
Leetcode works like this. Company A is asking these 100 questions with this frequency; let me solve these questions so that when I encounter these in the interview I can solve them then. The whole premise of Leetcode is on giving a question bank to what is already being asked. The aim is to clear the base bar a company has set.
Having seen similar problems really helps though.
Just like any sport as well
Why are you presuming an algorithmic interview? How many engineering jobs depend on being able to memorise algorithms?
If you mean suggesting an engineering interview: sure. Give someone a task and 40 minutes to build it. Leave them alone. Come back and go through the solution together.
Personally, I would be a much bigger fan of competitive programming if at least one of these were true:
1. The problems at high level programming competitions were harder and maybe mapped more to real-world programming problems. Think of the IMO or the Putnam exam in "competitive math." The "Olympiad" of programming today consists of 5-10 problems that top-level competitors can solve in ~10 minutes each by reading the problem and mapping it to a known algorithm. Speed of typing and information retrieval from your algorithm library is the primary skill here.
2. The scoring method was something other than speed of production of code. Performance of the code is an easy alternative, but also not a great one unless you want to force everyone to use C++ or Rust. Using an objective function of some sort (based on the problem) would be an interesting method, but harder to write questions for.
It is very easy to see the link between leetcode and competitive programming. The problem structure is basically the same, and the big difference is that the leetcode problems that people give in interviews are easier. The problem-solving skills involved are the same.
Also, I can't suggest an interviewing method for you that has all those properties, because one doesn't exist. You aren't going to find one interviewing method that works the same for a cloud provider, a CRUD SaaS startup, and a game studio. This isn't something you can just cargo cult, you have to design it for your own situation. My inclination would be to cut the 5 leetcode interviews from your circuit and put that time into a single 2-3 hour take-home project that has some relevance to your company plus a 1-hour code/design review interview. Alternatively, give a candidate a bunch of small code snippets and ask them to debug the code.
Finally, if you want an IQ test (which is what I suspect hiring based on "spelling bee" competitions like competitive programming and leetcode is really about), you can add a Wonderlic test (or one of their competitors) to your interview circuit - a lot of hedge funds do it, and I honestly didn't hate it when I interviewed with a few of them.
If you looked at the Putnam results this year, a good amount in the top 50 were competitive programmers (let alone top 500 which was filled with names on Codeforces). This is just America and Canada which aren't the strongest countries in the world when it comes to competitive programming. There is a significant amount of medalists in IMO who won gold medals at IOI.
Now 1) is definitely true. In the last ICPC, no team could solve D (including the winning team consisting of an IMO gold medalist, despite 19 tries).
Here is another example of a tough problem. It was so difficult that the solution to this problem was a published math paper! https://codeforces.com/blog/entry/109707#comment-977862
Now to debunk copying and pasting library code. Take a look at this blog. https://codeforces.com/blog/entry/112021
If you think just using some library code is competitive programming that takes 10 minutes to solve and mapping to some well known algorithm you most likely have never done it to any serious extent. In that case, provide more informed opinions then saying it is the same as leetcode.
I don't think you've kept up with or watched any "top-level" competitive programmer solve problems. Saying all competitive programmers do is copy-paste is like saying all programmers do is google.
Do you consider competitive programming a sport?
Everyone says this and then their replacements are time-wasting take-homes or raw credentialism. It's a drag to get ready for interviews but I think the fact that one at least has the opportunity to play on a level playing field regardless of what names are already on their resume is one of the best things about this career.
You demeaning a mind sport just because something similar is used for interviews is the joke.
RIP coding competitions.
Incidentally, World Finals: up to 2020, it was held in a location in the US or Europe, and has been online since. Pretty incredibly, Gennady Korotkevich has won the title every year since 2014 – except once.
On the same frontpage: https://news.ycombinator.com/item?id=35297067
Food for thought. Also by their own paper it has only a codeforces rank of 392 which is below 5th percentile.
```
This is a variant of the monty hall problem:
Suppose you're on a game show, and you're given the choice of three doors. IMPORTANT: All the doors are transparent. Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who clearly knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?
```
The response from chatGPT (v3, non plus) is:
```
Yes, it is to your advantage to switch your choice.
In this variant of the Monty Hall problem, the fact that the doors are transparent does not change the underlying probability of the problem.
```
I wonder how gpt-4 does. There does seem to be a bit of overfitting, but I consider the prompt fair enough and even called out the trick in capital letters, so that even a tired human should be able to get the answer.
Edit: An even more obvious variant of the prompt is seen in https://news.ycombinator.com/item?id=35192466, which goes further and spells out that the contestant explicitly picks the door with the car. ChatGPT still gets it wrong.
In this variant of the Monty Hall problem, since all the doors are transparent, you can clearly see what is behind each door. This changes the nature of the problem entirely. The element of uncertainty, which is present in the original Monty Hall problem, is no longer a factor.
In this scenario, if you pick door No. 1 and see a car behind it, you should stick with your choice, as there is no advantage to switching. If you pick door No. 1 and see a goat behind it, you should switch to door No. 2, as you can clearly see the car behind it.
Since you can see what's behind the doors, the probability of winning the car is no longer based on conditional probability, and the original Monty Hall paradox does not apply. Instead, your decision is simply based on your observation of what's behind each door.
-- First variant --
Since all the doors are transparent in this variant of the Monty Hall problem, you can already see what is behind each door when making your initial choice. Therefore, there is no need to rely on probability or switching strategies to maximize your chances of winning the car.
In this case, you simply choose the door with the car visible behind it. The host's action of opening another door and offering you the chance to switch doesn't provide any new information or change the odds, as you can already see the contents of each door.
-- Explicit variant --
In this particular case, since the doors are transparent and you can see that the car is behind door number one, you should stick with your original choice. There is no need to switch doors as the probability of winning the car by staying with door number one is 100%. The Monty Hall problem typically assumes that the doors are not transparent and that the contents behind them are unknown to the contestant.
The problem is that as soon as people started tricking ChatGPT 3 into problems like that, the correct answers are now being used to train the next versions and are going to be part of the dataset.
So GPT-4 or GPT-5 may get the answer right, but that still wouldn't mean anything.
Just a couple of years ago anything else than it responding "I don't understand" would be science-fiction and now we are surprised it's answering incorrectly on something even humans have a hard time to parse.
I would expect a journalist who never had do think through a theory of computation course to make breathless claims that ChatGPT can “solve programming problems“, but I’m pretty surprised to hear so many people who have jobs in tech repeating these claims, especially since all it would take them to trip up ChatGPT is a few seconds to type in a slightly unfamiliar or non-trivial question. It’s like a kind of second-order Turing test: if you think ChatGPT can program, you’re not a real programmer.
Just try submitting the IOI 2022 and IMO 2022 problems.
Obviously it still outperforms the average human, since the average human has no knowledge of mathematics or computer science whatsoever.
citation?
In chess it's very clear where to draw the line: no help allowed, you're on your own with your brain.
Where should one draw the line in Coding competitions? No ChatGPT? I guess most people would agree. No Copilot? Same as ChatGPT as the products seem to converge. No Googling? That too will converge to something close to ChatGPT.
If you can't look up information during a contest anymore, it comes down to memorization instead of problem solving. I am afraid the concept of coding concepts is dead indeed.
And, honestly, plenty of people do have enough memorized to do this stuff.
This is not true as of March 2023 (hard to prove a negative of course but look at the percentiles in the GPT4 report)
https://newsletter.pragmaticengineer.com/p/why-did-google-cl...
If anybody here had any teenage students who are mildly interested in programming, I'd really recommend getting them into CodeForces or any of the few remaining competitions. They are more accessible than coding olympiads like IOI, and it's the perfect way to develop a programming muscle while being in contact with a community of peers.
Meanwhile, apps get shittier, open source contributions are bloated or useless, and generally there's no incentive to refactor or fix anything unless it's broken today.. and then to only fix it however without considering reducing the mountain of tech debt.
Sad to hear that Google is closing them down, really feels like an end of an era.
Though it did inspire a new generation of programmers and for that long live Code Jam!
2. Take all high paying jobs
3. Profit
It is a product of decades of quantitative easing, near zero interest rates and a tech bubble that needed to collapse.
Thanks to GPT-4 and other LLMs, this have driven the need for coding competitions and interview tests like Hackerrank, Leetcode, Codility to zero and having almost no use since everyone will just Ch(e)atGPT the coding interview or competition.
As to the platforms themselves, they are still usable for in-person interviews and practice.
pretty easily solved with covid-era online exam surveillance, i.e. camera on, screen shared and live explanation of your solution. But honestly not even that is necessary because cheating on online tests isn't new and companies are aware of it. ChatGPT didn't invent someone else taking a test for you.