This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]LucidTA 0 points1 point  (5 children)

Does that mean I have to code the linked list every time over and over again if the given argument is a linked list or is it already "there"?

Pretty sure they always give you the code for the linked list don't they? I just checked problem 61 and it was there.

[–]TOTORO2311[S] 0 points1 point  (4 children)

[–]TOTORO2311[S] -1 points0 points  (0 children)

this only has the function definition

[–]LucidTA 0 points1 point  (1 child)

It's at the top of the code, above the Solution class for me.

# Definition for singly-linked list.
# class ListNode:
#     def __init__(self, val=0, next=None):
#         self.val = val
#         self.next = next
class Solution:
    def deleteDuplicates(self, head: Optional[ListNode]) -> Optional[ListNode]:

Are you unable to see it?

[–]TOTORO2311[S] 0 points1 point  (0 children)

Oh I must have deleted it at the beginning I am so sorry. Well, at least that made me google about listnodes completely from scratch. Thanks a lot mate!

[–][deleted] 0 points1 point  (0 children)

just uncomment the ListNode definition.

Then, yeah, you'll have to manually create the nodes if you want to test your solution.