Last active
June 24, 2020 12:41
-
-
Save vamsitallapudi/1148f2087956961adad805d0fc88fbc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def delete_at_start(head): | |
# edge case: return if head is null | |
if not head: | |
return None | |
head = head.next # moving head to next node | |
return head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment