Ad
  • Custom User Avatar

    not satisfied with my dull solution...wonder if there is a google smartass way

  • Default User Avatar

    If the problem is easily attacked with Streams, why not use them? I don't agree that the question calls specifically for solutions that only use arrays. That seems like an artificial limitation. I also don't agree with premature optimization.

  • Custom User Avatar

    IMHO Java8 solutions should not include stream and maps - you are being asked an algorithmic and arrays/based question, answering by creating tons of objects is not appropriate.