5 ms·
A a b b c c c c d e Give me a count of each letter. Give me a function that given a number returns the letters that have that many in it. You have 60 minute
by treeman79 4y ago
A a b b c c c c d e
Give me a count of each letter.
Give me a function that given a number returns the letters that have that many in it. You have 60 minutes. Any language.
- popularonion 4y agoIn my experience interviewing, about 25% of candidates would fail the first part and another 25% would fail the second part. This is after the initial resume screen and sometimes even after they did an online leetcode style test.
- throwaway6734 4y agoAre they just blatantly lying on their resumes?
- lapcat 4y ago> Are they just blatantly lying on their resumes? How would anyone know? Once a candidate fails the screen, the company rejects and never gives a second thought to the candidate again. Does any company do follow-up to see what happened in the future to rejected candidates? I've never heard of that happening. The coding screens are just assumed to be infallible, so the candidate must have been a fraud. It's unthinkable that the screening tests themselves are wrong, because then the whole hiring process is misguided.
- popularonion 4y agoI blame the trend of “software development” as a job role getting farther and farther away from the task of writing programs. There are lots and lots of big company jobs where you can skate by writing ~100 lines of code a week (or less!) all inside the mandated Big Company In-House Framework. In fact your boss demands that you work this way. I mean, that was totally me for years, so I’m not judging too harshly.
- gopher_space 4y agoI’ve been at a senior level for a while with a bunch of projects in daily public use that I can point to and discuss at length. I’ll still google “how 2 for loop” sometimes.
- treeman79 4y agoWe ran about a 75% failure rate on the above quiz. This is after the reciter screened them and we had another developer phone screen. Some took one look at it and walked out. Others would solve it in under a minute. Everyone in between.
- symfoniq 4y agoI'll be looking for a new contract or job in June. Last time through the process, someone actually told me I was bad at interviews! They might be right; I spend a lot more time doing the job than looking for jobs. I'm not looking forward to the grind, and doubt I would be so fortunate to run into fun little problems like this one: letters = %w(A a b b c c c c d e) letter_map = Hash.new(0) letters.each do |letter| letter_map[letter] += 1 end def print_count(map) map.each do |key, value| puts "\"#{key}\": #{value}" end end def match_count(map, count) map.select { |key, value| value == count }.keys end print_count(letter_map) match_count(letter_map, 4)
- gopher_space 4y agoOh my god. Tell me what problems you're experiencing and how you've tried to solve them. Talk to me about goals and knowledge gaps. What's your approach to "I don't know how to do this" and what do you think of mine? Why is the internet apparently disabled at your business? Talk to me about holes in your onboarding process and ask me how I'd fix them. Use me as a sanity check for your data structures vs business intent. https://www.penny-arcade.com/comic/2008/02/13/professor-layton-and-the-perpetual-torment https://www.penny-arcade.com/comic/2008/02/13/professor-layt... Why are you always asking me to rediscover and reimplement the Fibonacci sequence when none of us give a fuck about it? This whole thing's insane, what have I become.