u/Fine_Nectarine9328

as a beginner this linked list problem cooked me

just started leetcode 5 days ago, upto array it was just bit uncomfortable, but I learnt linked List for the first time and oh my godd, that problem remove linked list elements just did me raw, on that specific case 7,7,7,7 it didn't pass cause I was stucking at doing 0 index logic correctly I even did that to but just this line took my whole 2 hoursss,

node = head
#full code
class Solution:
    def removeElements(self, head: Optional[ListNode], val: int) -> Optional[ListNode]:
        node = head 
        while head and head.val ==val:
            head = head.next if head.next else None
            node = head
        while head and head.next:
            if head.next.val == val:
                head.next = head.next.next
            else:
                head = head.next
        return nodeclass Solution:
    def removeElements(self, head: Optional[ListNode], val: int) -> Optional[ListNode]:
        node = head 
        while head and head.val ==val:
            head = head.next if head.next else None
            node = head
        while head and head.next:
            if head.next.val == val:
                head.next = head.next.next
            else:
                head = head.next
        return node

however Im not complaining and whining, just telling, I really got this spark or thing like this many days after, Ik 2 hours isnt valid on ts problem but it is what it is

reddit.com
u/Fine_Nectarine9328 — 3 days ago
▲ 2 r/DreamsInterpretation+1 crossposts

My dreams always resumes in the same altered world

so I dream almost daily not so pleasent, My dreams are always in same altered world it gets resumed, everyone are bit different than real life no such new "characters" only persons I know are present, roads are changed my house, school, relatives house are changed not random but certain changes weird mostly like infinite kinda narrow hall in school, I can't even explain, some places are my brains favourite it likes to put me there with specific reason, like that part of road, basement of my school, my old house rooftop, new "invented" places I know where my brain formed them but in real life those places don't exist, some events it made are it's favourite like my cousin's wedding (nothing special really nothing about that cousin or wedding) it gets always stuck there, like I'm in school middle of night, I have to survive in school because of something really life threating is happening and there's no way to escape, apocalypse happened at school, my old house is collapsing, my parents forcing me to stay alternate days in current house and old house, many many weird things happening at night in my current house , my dreams have references of previous dreams not slight but strong and not even week old it could be weeks months or year(idk howw, like I know it had happened to many times so don't do this), I have a weird ability to fly or elevate on purpose but only with certain amount of focus, if I get too high I distract and fall from above, so I have to maintain a height of around 30-50feet it's really weird and I know I can fly like I always do, sometimes, I get to know it's a dream I try to scream or k!ll myself to escape but I always fail, same dream may have repeated many times if not full dream then definitely those 'imaginary' events have occured many many times.

I am having these dreams loop from last 2-2.5 years.

rarely I get any other type of dream(like some new place or new person or something).

If u read fully, let me know if u also face same thing

and sorry english is not my first language and I don't want to post ai slop so.. bear with me ;)

reddit.com
u/Fine_Nectarine9328 — 4 days ago
▲ 5 r/opencodeCLI+1 crossposts

So I am using 3.6 35B A3B, pretty good for my work, but the first 64k tokens feels bigger like not a problem, but second time onwards it starts to read every file again and fills up context then context is emptied then it tries to read files again and so on, so no production after that, so what is solution of this, or do I have to start new session every time if so then how it gonna know about project and it will still feel the context so pls mention possible solutions.

reddit.com
u/Fine_Nectarine9328 — 11 days ago
▲ 4 r/LeetcodeDesi+1 crossposts

I am thinking of doing striver playlist, So wo playlist kaise follow krni h, mujhe cpp basics aate h. but dsa bilkul nhi aata

  1. Kya wo playlist organised h mtlb I can start from first video and linearly follow upto last video or is there any specific order to follow?

  2. Questions practice saath saath krni h ya puri playlist dekhne ke baad

  3. uske liye java bhi sikhni h kya?

reddit.com
u/Fine_Nectarine9328 — 17 days ago