[Edit] In Two Sum problem, for any given array of integers, are they ordered by descending, ascending, or randomly?


  • 0
    K

    Just want to clarify the specifics of the problem, whether the given array of integers is ordered, or is completely randomly ordered.

    Edit:
    Update. I just reread my question and realized it did not fit my question. For any given array of integers, are they ordered by descending, ascending, or randomly. Sorry about that.


  • 4
    C

    You should not assume any order, i.e. they come in random.


Log in to reply
 

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