Unable to load image

Codecels seethe when asked to prove they actually know how to code

https://old.reddit.com/r/cscareerquestions/comments/qbgttt/does_anyone_else_find_it_toxic_when_developers?sort=controversial

https://old.reddit.com/r/cscareerquestions/comments/qbgttt/does_anyone_else_find_it_toxic_when_developers/hh9e63l/?sort=controversial

This is probably the most dramatic thread in particular but there's some great REEEEing throughout from bootcamp grads who can't write "Hello word" without importing a half-dozen Javascript libraries and copy-pasting something from StackOverflow

90
Jump in the discussion.

No email address required.

Yeah, my friend who hires at a major media company tells me he gives candidates a simple problem to solve: given an input of n cents, break it down into as few coins as possible using quarters, dimes, nickels and pennies. So if the input is 56, simply print something like "2 quarters, 1 nickel,1 penny". And they can just explain the solution if they'd rather not code in front of him. He says that a literal, non-exaggerated 90% of candidates get completely stumped by this.

I've been teaching my pre-teen son to code as of about 10 months ago, just casual weekly sessions and assignments, and he solved this exact problem on his own with zero tips.

Yeah mate, I'm sure your preteen son knows how to do this, and it's not just you submitting a shitty greedy solution that doesn't actually work.

Jump in the discussion.

No email address required.

If you don’t reach for a greedy solution first, I’m just going to assume that you're a kitty.

Jump in the discussion.

No email address required.

But the greedy solution always works here. It obviously works for everything below quarters because the nominals are multiples of each other and if you don't use a quarter the only interesting alternative is three dimes, but then you could have used a quarter and a nickel.

Jump in the discussion.

No email address required.

Yeah greedy solution for the change making problem works fine (USD).

Jump in the discussion.

No email address required.

Yeah I suppose, but that question is never the one that's asked. It's always a list of coins with different denominations and some target sum.

Jump in the discussion.

No email address required.

shitty greedy solution

Imagine being enough of a sperg to try to optimize an interview problem.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.