Ad
  • Default User Avatar

    Short and clear, but pretty bad performance.
    This will have to scan all of b for each element in a.
    I'm baffled by how often in this site the "top" solution is just the shortest one, as if number of lines is the ultimate measure of good practice.

  • Default User Avatar

    I'm seeing a lot of people suggesting this kata is too easy to be 6-kyu.
    I suggest to those people to solve this with your own algorithm, without using the known 1-line formula.