News for hackers. Stuff that matters.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by garrettgarcia on Friday September 12, 2025 @01:25PM (#45224448)
> My biggest problem with leetcode type questions is that you can't ask clarifying questions.

Huh? Of course you can. If you're practicing on leetcode, there's a discussion thread for every question where you can ask questions till the cows come home. If you're in a job interview, ask the interviewer. It's supposed to be a conversation.

> I wouldn't even mind the studying on leetcode types sites if they actually had decent explainers

If you don't find the hundreds of free explanations for each question to be good enough, you can pay for Leetcode Pro and get access to editorial answers which explain everything. Or use ChatGPT for free.

> It's not a matter of skill, it's just my ability to take in certain types of problems doesn't work well.

I don't mean to be rude, but it is 100% a matter of skill. That's good news! It means if you put in the effort, you'll learn and improve, just like I did and just like thousands and thousands of other humans have.

> Without any chance of additional info/questions it's literally a setup to fail.

Well with that attitude you're guaranteed to fail! Put in the work and don't give up, and you'll succeed.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by tracker1 on Friday September 12, 2025 @01:47PM (#45224664)
Last year, I saw a lot of places do effectively AI/Automated pre-inverview screenings with a leetcode web editor, and a video capture... This is what I'm talking about.

I'm fine with hard questions in an actual interview.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by another_twist on Friday September 12, 2025 @01:29PM (#45224494)
> My biggest problem with leetcode type questions is that you can't ask clarifying questions.

Yeah this one confused me. Not asking clarifying questions is one of the sureshot ways of failing an interview. Kudos if the candidates ask something that the interviewers havent thought of, although its rare as most problems go through a vetting process (along with leak detection).

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by epolanski on Friday September 12, 2025 @02:17PM (#45224958)
Many interviews now involve automated exercises on websites that track your activity (don't think about triggering a focus change event on your browser, it gets reported).

Also, the reviewer gets an AI report telling it whether you copied the solution somewhere (expressed as a % probability).

You have few minutes and you're on your own.

If you pass that abomination, maybe, you have in person ones.

It's ridiculous what software engineers impose on their peers when hiring, ffs lawyers, surgeons, civil engineers get NO practical nor theorical test, none.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by SAI_Peregrinus on Friday September 12, 2025 @03:10PM (#45225537)
At least in the US, lawyers, surgeons, & civil engineers all have accredited testing to even enter the profession, in the form of the bar exam, boards, and FE & PE tests respectively. So they do have such theoretical tests, but only when they want to gain their license to practice in a given state. Software doesn't have any such centralized testing accreditation, so we end up with a mess.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by dmoy on Friday September 12, 2025 @02:48PM (#45225288)
The major difference between software devs and lawyers, surgeons, and civil engineers is that the latter three have fairly rigorous standards to pass to become a professional (bar, boards, and PE).

That could exist for software too, but I'm not sure HN folks would like that alternative any better. Like if you thought memorizing leetcode questions for 2 weeks before an interview was bad, well I have some bad news.

Maybe in 50-100 years software will have that, but things will look very different.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by epolanski on Friday September 12, 2025 @06:57PM (#45227714)
You ain't interviewing your plumber or accountant come on and I have millions of other examples.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by dmoy on Friday September 12, 2025 @08:27PM (#45228217)
Accountants have to sit for the CPA exams (four of them), and depending on the state may have required graduate course load. And also you should interview your CPA, because a lot are not very good at whatever specific section of accounting you need (e.g. tax filing).

Plumber is probably the closest to what you're getting at. They are state licensed typically, with varying levels of requirement. But the requirement is often just like "have worked for 2-4 years as a trainee underneath a certified plumber" or whatever. That would be closest to what I'm guessing you would be recommending?

Also relevantly: the accountant and plumber jobs that are paying $300k-$500k+ are very rare. There exist programming jobs that pay what a typical plumber makes, but don't have as many arcane interview hoops to jump through.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by lukan on Friday September 12, 2025 @02:45PM (#45225260)
"don't think about triggering a focus change event on your browser, it gets reported)."

So .. my approach would be to just open dev tools and deactivate that event.

Show of practical skill or cheating?

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by supriyo-biswas on Saturday September 13, 2025 @01:48AM (#45229658)
Switching to devtools also triggers a focus change and is detectable by other means (such as repeatedly invoking a debugger statement).
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by lukan on Saturday September 13, 2025 @02:20AM (#45229771)
One can type in devtools withouth having the focus on dev tools, but indeed, to track down the event, one has to loose focus for a while. But after you find out what line of js is needed, then you can just inject that without dev tools with greasemonkey for instance.

But probably a general solution exists ... and there are actually extensions that will do that in general.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by ok123456 on Friday September 12, 2025 @01:40PM (#45224586)
How does asking clarifying questions work when a non-programmer is tasked with performing the assessment, because their programmers are busy doing other things, or find it degrading and pointless?