6 Comments


  1. It is a good question.this question replace set.remove(i-1) to set.remove((short)(i-1)) when answer is 1

    Reply
  2. Dan Zhuo

    Even i by itself is type “short”, the calculation result of “i-i” is type int, which need explicitly cast to “short”, the set cannot find the Integer “i-1” in Short Set.

    Reply
  3. Artur

    what is the GoogleTEDTalks where this question appears?

    Reply
    • admin

      This question was discussed in a TED talks video and is available in YouTube. The video was shared with id GoogleTEDTalks. You could search for GoogleTEDTalks in YouTube and should en able to get it.

      Reply

Leave a Reply