1 Line Python As Long As I'm Allowed to Use Bisect


  • 0
    class Solution(object):
        def searchInsert(self, nums, target):
            return bisect.bisect_left(nums, target)
    

Log in to reply
 

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