Square Segments

Sort by

recency

|

4 Discussions

|

  • + 1 comment

    why [3,3] not included in sample case 1 neither [3,4,3]?

  • + 1 comment

    How to hash a set of elements where order of the elements doesn't matter?

    One way is to sort the elements and then do polynomial hashing. Is there any easier way?

  • + 1 comment

    is a segment defined as a subarray or subsequence ?

  • + 1 comment

    Is the first sample wrong? It lists 5 segments but the answer is 4. I believe {3, 4, 3} is not correct?

No more comments