Live data from Hacker News

Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

hoanhan101.github.io

31–40 of 71 posts

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#31
post #5

The fact that one can just ahead and cram for these problems should pretty much... severely downgrade, at least, their usefulness as hiring filters.

Wouldn't you want people who care enough about their career to cram? That itself is a good signal. Cramming algorithms problems is difficult and succeeding shows grit. It also selects against sociopaths who BS their way through subjective personality interviews.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#32
I have been prepping for almost 6 months now. I look at the stocks new hires get at my company and what my refreshers are. Companies seem to be relying on the fact, most people are too lazy to leetcode and will not give good refreshers. I have been with the company long enough that leaving and coming back atleast will add 600k to my earnings in the next 4 years. One thing however though I notice, that my coding speed has improved a lot by doing timed leetcode questions. I also look at the complexity of everything I write far more than I used to. Overall it looks like a win, win for me. The moment my company gave same level of stock as I would get in 2 years to a new college hire, I have decided to move. I have been with the company for more than 18 years. It is possible it is my company that does this. I hear goog refreshers are good.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#33
post #28

The new trend in SF/bay area seems to be companies you’re applying to preparing you _specifically_ for the questions they’ll ask. People realized no one memorizes one specific search algorithm or puzzle, so they now tell you, before the interview, that you’ll be asked problems A, B and C. Not “algorithm problems” or “search” - “we’ll ask you to revert a doubly linked list”. It’s bizarre.

Where have you seen that? The most I've been given is a general interview prep guide about how to prepare for an on-site.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#34
post #33
post #28

The new trend in SF/bay area seems to be companies you’re applying to preparing you _specifically_ for the questions they’ll ask. People realized no one memorizes one specific search algorithm or puzzle, so they now tell you, before the interview, that you’ll be asked problems A, B and C. Not “algorithm problems” or “search” - “we’ll ask you to revert a doubly linked list”. It’s bizarre.

Where have you seen that? The most I've been given is a general interview prep guide about how to prepare for an on-site.

2 “FAANG” companies and another one of the top big tech ones. One had a recruiter calling and literally listing all the questions they “could ask”, coding, architecture and all. They asked all of them.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#35
post #5

The fact that one can just ahead and cram for these problems should pretty much... severely downgrade, at least, their usefulness as hiring filters.

Wouldn't you want people who care enough about their career to cram? That itself is a good signal. Cramming algorithms problems is difficult and succeeding shows grit. It also selects against sociopaths who BS their way through subjective personality interviews.

People who care enough about their career to cram falls into 2 groups pretty evenly:

1. People who care about building good products, leading to good careers.

2. People who care about their career for the sake of their careers. This group tends to focus on office politics.

Therefore, caring enough about their career to cram has not a signal for how much they will care about building great products.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#36
post #29
post #21

Earlier quoted context omitted.

Currently a junior in a reasonably well-regarded (and difficult) CS program, this is 100% how I feel. As a result of my genuine interest in the material being taught and desire to do well on course projects, I do not have the time or energy to be grinding Leetcode and HackerRank to the extent that I've read others do. Yet every company I apply to will not even speak to you unless you pass their brain-teaser-esque Hac…

I'm sorry you feel this way. The best advice I can come up with is, either find a product space you care deeply about and see how far you can take it or swim with the wave and start preparing for coding interviews.

Interestingly, the only places I've interviewed with that deviated from the typical SV coding challenge interview have been the national labs (JPL, LANL, Sandia, etc.). The questions they asked were much more focused on my interests as well as evaluating my general software engineering skills. I did an internship at one of them last year and it looks like I might be headed back there this summer too. Hoping I don't get locked into the national labs scene permanently.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#37
post #5

The fact that one can just ahead and cram for these problems should pretty much... severely downgrade, at least, their usefulness as hiring filters.

It's not so much that you can cram for this stuff (you can cram for anything, to some extent!) and more that this whole 'coding' interview and whiteboarding stuff has evolved into something that actively encourages cramming, and discourages professionalism and commitment to the actual work. It's indistinguishable from a cargo cult at this point.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#38
post #21
post #12

It pains me to see another Coding Interview preparation tool. It's such a sad situation in the current industry. Students learn to game the system to get a high paying job. Students who care about what they are working on will painstakingly try to perfect their projects. They don't have time to game the system and therefore have a hard time getting a coveted job. Companies want to hire "the best" so they usually hire…

Currently a junior in a reasonably well-regarded (and difficult) CS program, this is 100% how I feel. As a result of my genuine interest in the material being taught and desire to do well on course projects, I do not have the time or energy to be grinding Leetcode and HackerRank to the extent that I've read others do. Yet every company I apply to will not even speak to you unless you pass their brain-teaser-esque Hac…

I was interviewing with a company a year ago that had their own private tests on something like hackerrank. My code met the stated requirements and all of the publicly posted test cases. But, I failed a private test for which they would give me none of 1)the input 2)the expected result and 3) outpput of the program. I would have loved to have debugged it and fixed it, but said fuck it. Ifbthis is how they are in a preinterview, not a place I want to work. So, I told them to get bent when they declined to bring me on site because I couldnt pass their test. Told the recruiter what happened, and he was like "that's fucked up".

Coding challenges are one thing, but you better have precise specs and actually give the candidates enough info to work on a tractable solution.

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#39
post #12

It pains me to see another Coding Interview preparation tool. It's such a sad situation in the current industry. Students learn to game the system to get a high paying job. Students who care about what they are working on will painstakingly try to perfect their projects. They don't have time to game the system and therefore have a hard time getting a coveted job. Companies want to hire "the best" so they usually hire…

On the other hand, the current interviewing trend generates a steady supply of nifty, bite-sized problems to solve for fun.

I keep a "practice" repo on Github, where I put my solutions. Often, for an extra challenge, I'll prove the solutions correct or try to write clear explanations of how to solve the problems from scratch. (Proving something helps me to see the hidden structure upon which my intuition rests. Explaining something helps me to lock it in my head.)

Over the years, I have learned a lot from this practice and have built up a repo that serves to keep my memory fresh. Here are some fun examples:

https://github.com/tmoertel/practice/blob/master/dailycoding...

https://github.com/tmoertel/practice/blob/master/dailycoding...

https://github.com/tmoertel/practice/blob/master/water-holdi...

So, in at least one respect, I like the obsession with interview problems :)

Re: Coding Interview Problems with Detailed Solutions, Test Cases, Program Analysis

#40
post #12

It pains me to see another Coding Interview preparation tool. It's such a sad situation in the current industry. Students learn to game the system to get a high paying job. Students who care about what they are working on will painstakingly try to perfect their projects. They don't have time to game the system and therefore have a hard time getting a coveted job. Companies want to hire "the best" so they usually hire…

It is the environment the industry has created.

I'm terrible at code trivia type stuff. My Jr dev job I got from a company that asked me to build something for them. It wasn't big or useful, but it gave me a chance to show my thought process and there we go I got hired.

Since then it has been a great ride as I fix things as I make enhancements (I try to leave wherever I work a better place) and even built an application that complements their main application (customers love it).

Meanwhile some friends I talked to say they can't find good people .... but their interviews are all trees, and trivia and 'typical' interview type stuff that doesn't really demonstrate being a responsible coder, the ability to work independently, or just common sense....

Pretty sure I'm going to have to dive into that stuff if I ever decide to move on.

Post reply on HN