News for hackers. Stuff that matters.
Re:Hiring technical talent: An exercise in clarity, patience... by symfoniq on Friday May 13, 2022 @06:42PM (#31373272)
I'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)

There are no comments on this comment yet.