Search Insert Position-Python


  • 0
    S

    '''
    for i in xrange(0, len(nums)):
    if target == nums[i]:
    return i
    nums.append(target)
    nums.sort()
    for i in xrange(0, len(nums)):
    if target == nums[i]:
    return i
    '''


Log in to reply
 

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