Assume the first element of the array is forward next to the last element, and the last element is backward next to the first element. Can someone please explain this ?


  • 0
    A

    From the problem definition, can someone explain this : "Assume the first element of the array is forward next to the last element, and the last element is backward next to the first element. " ?


  • 0
    D

    It means that we should assume that the array is circular both in the forward and backward direction. i.e. if we are going forward then the next element after the last element is the first element, and when going backward, the last element is the next element after the first element.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.