Python | Working on IDLE not on Leetcode


  • 0
    K

    class Solution(object):
    def deleteDuplicates(self, head):
    if head is not []:
    return set(head)
    else:
    return False


Log in to reply
 

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