Easy Python Wayout


  • 0
    W

    def remove(num,val):
    h = []
    for i in range(len(num)):
    if num[i]==val:
    h.append(num[i])
    return(len(num)-len(h))


Log in to reply
 

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