This raw display of problem-solving humanizes the coding process by showing that even complex algorithms are mastered through persistence and messy debugging. It is a refreshing and honest look at the intellectual struggle behind every successful technical interview.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Dumbest guy doing leetcode live day 32Added:
From zeroing dreams to a toad in here all fall I pray but I don't stay down I turn my loss into my crown I'm cold guy still in the fight going through the darkest night but I still create I build my future I don't yeah every dev still figuring it out you're not behind you're just building code out.
Yeah, this for every dev. Still stuck in tutorials.
Still waiting for that first offer.
Cold guy in the code base.
Let's go. I wake up late, laptop on my lap. Another day where I'm stuck in a trap. Le code open. I'm staring at trees, but my brain says, "Bro, just let it be." Functions break when I think too hard. Life feels like a badly written card. Merge conflicts in my real life script. Every dream feels like it might just slip. Apply to jobs. Got we regret to inform. Now the rejection feels like the norm, but I still type code. When the world goes mute, trying to turn the struggle into proof. Yeah, I'm down, but I'm not done. Every failure just makes me run. One more try, I reload the pain.
WATCH ME TURN IT ALL AGAIN.
>> I'M COLD GUY. I built from zero. Working dreams to a golden hero. I fall out, but I don't stay down. I turn my loss into my crown. I'm good. Still in the fight.
Coding through the darkest night. No job yet, but I still create. I build my future. I don't wait.
Now I'm switching stacks like I switch my mood. Full stack grind. Yeah, I stay in the loop. React front hand back and flow. Trying to build what the companies want to know. D say pain still hits my head. Binary search, but I feel half dead, but I debug life like a debug code. Turning pressure into a stronger mode. Gen tools in my workflow now.
Making smarter apps. Learning how not to syntax. I think systems, building solutions, breaking limits. They see results. They don't see nights. They don't see struggles only highlights. But every just my way. I'm getting closer every day. I'm a guy. I build from zero.
Following dreams to a golden hero. All I don't stay down. Want to turn my loss into my crown. I'm cold guys. Still in the fight. Golden and crew. The darkest night. No job yet, but I still create and I build my future. I don't wait.
Now I see it clearer than before. Every rejection open the door. Not hired yet, but I'm still in motion. Coding my way like an ocean. One day off a letter in my hand. Till then I'm building. I make my stand. From stack overflow to life control. I CODE MY PATH. I OWN MY WRONG.
>> I'M COLD NIGHT. I BUILT FROM zeroing dreams to a toen her fall I pray. I don't stay down. I turn my loss into my crown. I'm cold guy still in the fight.
Going through the darkest night. No job yet. But I still create. I build my future. I don't wait.
Yeah.
To every dev still figuring it out.
You're not behind, you're just building.
Cold guy out.
Yeah, this for every dev. Still stuck in tutorials.
Still waiting for that first offer.
Cold guy in the cold base.
Let's go. I wake up late, laptop on my lap. Another day where I'm stuck in a trap. Le code open. I'm staring at trees, but my brain says, "Bro, just let it be." Functions break when I think too hard. Life feels like a badly written card. Merge conflicts in my real life script. Every dream feels like it might just slip. Apply to jobs. Got me regret to inform. Now the rejection feels like the norm, but I still type code. When the world goes mute, trying to turn the struggle into proof. Yeah, I'm down, but I'm not done. Every failure just makes me run. One more try, I reload the pain.
WATCH ME TURN IT ALL AGAIN.
>> I'M COLD GUY. I build from zero. Working dreams to a golden hero. I fall out, but I don't stay down. I turn my loss into my crown. I'm cold. Still in the fight.
Cing through the darkest night. Don't die yet, but I still create. I build my future. I don't wait.
Now I'm switching stacks like I switch my mood. Full stack grind. Yeah, I stay in the loop. React front hand back and flow. Trying to build what the companies want to know. D say pain still hits my head. Binary search, but I feel half dead. But I debug life like a debug code. Turning pressure into a stronger mode. Gen tools in my workflow now.
Making smart apps learning how not to syntax. I think of systems building solutions. Breaking limits. They see results. They don't see nights. They don't see struggles. Only highlights.
But every just my way. I'm getting closer every day. I'm calling guy. I build from zero. Following dreams to a golden hero. All I pray, but I don't stay down. I turn my loss into my crown.
I'm cold, guys. Still in the fight. Cold and through the darkest night. No job yet, but I still create and I build my future. I don't wait.
Now I see it clearer than before. Every rejection open the door. Not hired yet, but I'm still in motion. Coding my way like an ocean. One day I'll let her in my hand. Till then I'm building. I make my stand from stack overflow to life control. I CODE MY PATH. ON MY ROAD.
>> I'M COLD GUY. I BUILD FROM ZERO. Dreams to a golden hero. Fall out. But I don't stay down. I turn my loss into my crown.
I'm cool guy. Still in the fight. Going through the darkest night. No job yet, but I still create. I build my future. I don't wait.
Yeah.
To every dev still figuring it out.
You're not behind.
You just build guy out.
Yep.
What the hell is this?
Can I just use code guy 01 save? Yes.
Oh [ __ ] bro.
You may not change your name. Display name only capitalization of it. Okay, I can't change once you create you can't change the name.
Let me capitalize.
[ __ ] you.
Twitch model.
Oh my Go to the lake. Carbra.
Wow.
I am a human. I am a human.
A5 rotate less.
Okay. Link list question.
Given head of link list, rotate the list by right K places.
What the hell?
Given link list rotate the array by K places.
Yo, what's up, man?
How do we rotate and link CES, man?
I know how to rotate an array k places.
Shall I convert the link list to array and uh since output is like normal array and we just convert into array and rotate by k places and return back.
That is not allowed in the interview, right?
So let me let me write if you're not able to hear me. I don't know if I'm audible or not. Uh so what I'm saying is um rotate rotate it by K places and return the output.
Let me share this question to my people on the disord.
Uh, PD problem of problem. Sorry, problem of Seriously, bro. What the [ __ ] So let me print the head. Can we just get the head instead of head?
What are we getting after printing the head? Are we getting the value was required? Yeah, we getting the value.
Now what we can do is like just rotate by K basis in the normal thing. Yeah.
So let's write the rotate function for this time. Uh since we know how the rotate work it is basically number.
So we'll have the end and it passing the start of the star of start and of start a show the end of 10.
So double now we have the rotation rotate function right now. Now you have to only rotate k places. You need three rotation to do that. Uh since we have done this so many times the same question already you have to rotate from uh -1 till we have to rotate we have to rotate from -1.
So we can see and rotate.
Now we have to rotate from 8 till 8. length and uh our head won't be okay let me create the head bro I can't do I don't think head will have the length so what you can do is like get the head here I think head should have the head value r and uh we have to rotate everything at once I guess at the end rotate from zero till um uh a r and will be like a rus one to minus one.
First one will be like um from from 0 to k 0 to k minus one. Okay.
And next one will be like k till n and last one will be like complete array r.
Okay, I think it's good now.
They did not even mention anything like you have to do it in in place or something. So I think using an array is a good way of solving this. I don't know maybe they are asking me to do in two pointers but I'm just doing it in the normal way how we do the array thing. I have to return a r if this is rotated then we rotate is working right. Start end of start and start and end.
And let me check once.
Okay, we got some error here. What's the issue here? Okay, it should be error, I guess.
Are we using the head somewhere?
Uh, we using only head. I think it should work now. If my rotation function is proper, then it should work. Um, we're getting some issues here.
A rus one is right one. I guess what is the issue here?
Okay, let me comment this and uh first check if my head is here.
Okay.
So, can I just copy the head itself?
Hey, can't this operator then I can do this?
This is pointing the same thing. So, now this should work, right?
It doesn't matter for me like it is pointing in the normal way or like what saying to me then it should be fine.
So this was right. You can do split off for this thing. No other way of popping this thing that is not editable.
Um fine. Can I do this?
We got a wrong answer right now. What is the issue here? So the rotation did not work. Let's debug.
My head error consists the head and uh rotation will start from here.
Rotation functions proper I guess.
What is the issue here? Oh, they asking rotate K by right places. I think I have done for the left place.
How do you do for the right place? It should be reverse, right?
I think um I think it's if this is for right then it should be coming in middle I guess and uh we will be rotating rotating from zero till end first and again we'll be rotating back I guess I don't know this is not even rotating I think why like why my rotation function not A rotate function should work fine.
Since we have a K places, are we not using the K thing? I think I have missed something. It should be from 0 till K and K till zero.
Okay, this should be this should be K I guess.
Are you getting wrong answer? Not even any rotation happened here.
Hey, can't we can't we just convert the link list to because of Oh, I think um this part is not working. I guess maybe what we're expecting is not getting over here. I guess I don't know.
What do you guys think?
Do you guys have any idea like what can we do? I think this should be like zero.
This should be zero and this should be K. I guess for the right one and for the left one it will be opposite.
Uh maybe the storing part is wrong I guess. How can we store this?
Maybe let's iterate over the head element.
Current equals to head and until our current is there. current is not equal to that. What we do is uh let you just push the element inside just push current.
current should current next move.
Now our head should have the proper value for this thing and uh rotation also should work I guess since our starting should be for zero for this one and uh if we are doing it for the left one then it should be like 0 till k minus one and after that k k till end of the array and the whole rotation of the array but here since you're doing for the right side we have to do it little different this should work bro if this is not working then you need to see what is error something wrong here what does it say I don't even have line 57 somewhere okay let me console the head why it's saying me can't Uh back written list. Oh [ __ ] Is it possible?
What the [ __ ] am I even searching, man?
The only way of doing is like we have to again iterate back to the head. I guess they're using end spaces for doing that thing.
What are they doing? Checking if length is in head. They're creating new list array. Oh [ __ ] Why are they doing zero?
This part is not understandable.
Oh, this is cool. Array reduce right.
Oh, they're using this. Are they using this this thing or like concise ways use rad which builds a list from the end of the front?
Okay, let us try this.
Uh can I just manipulate the head array now?
This head I don't think this is possible.
What is this? Rad iterative iterative is iterative iterative method. It runs reducer all the functions over all elements in array descending and ascending.
It's only used for printing in descending and ascending.
Will it convert my array back to English or not? That is what my question only thing need to be done is like we have to convert back to blink place.
Does this really work?
Can I even do this thing?
Let me run once.
It worked for the first one, but it failed for the last. Why?
Did it go out of the bound? Oh, it did not even rotate.
I think we have to do it in a different way.
So, you already have the head.
What we have to do is iterate over the array and just push it inside the base or maybe we can create a new link.
Please let result to new where is list node. This is not supposed to new list node. Uh does it takes anything in it? It is value. Next we have to create separate separate link link uh list node for everything since we have rotating here.
We are getting error while my current is there until then you'll be getting errors 452. Okay, this is fine.
Check for the second test.
Did it show for the second test?
The first one is right. I guess first one is 4512 3 4 5 1 2 3 Now we have to create the link list and push the elements inside it. I next can't I just create a new What is this thing gives me?
I'm doing it in a too much complicated way.
Let me let me comment this thing so you don't get the error.
I'm making it too much complicated.
So we have a zero here. So this is literally empty I guess.
Uh let's rename to the let's keep the result itself. Now what we can do is like uh do a for loop and uh that I I will go till this should happen after after the rotation. So I might be getting the wrong answer later. So I will just make sure to put that thing here.
And now we have to only connect everything together. That's it. First value you take and connect to the second Okay, let me ask you for something.
We are very close and approach converts and rotate and rebuild is totally fine.
This part sucks is just rebuilding the link list from the array.
This stuck this part is stuck on there is rebuilding the list from array. The problem in your current code you created one node and you're not linking new nodes. You need to build a chain using next start like this.
I have to I have to first assign my result as of zero. So it will contain the first element.
Where is that? Where is it?
How is it?
Okay. Now we have okay now we have a zero element and now we have to only iterate over the thing and just complete this thing but let my current will be result current is used to build the list where is pointing to the So if you print my result, if I print my current then I will get my first print one. Are you getting some error?
Current has been already declared. Okay.
Uh, load.
We're getting four. Okay. The first one, the first value. Fine.
What we need to do is like iterate over the current and do next and do it. Uh how do you assign a value there?
Should it be current to head area I and current next? Will this work?
This should work. I guess it will start from zero. It should start from one right then since we have already stored the first one thing here first thing here. So start from the first element I will start appending inside the val and move to the next pointer here.
Oh [ __ ] Let's hope it works.
So I'm supposed to return the result.
I'm doing it in a too much complicated way. Oh [ __ ] Cannot set the property of null to the uh what does it says? Cannot set a property of null. Can I use a while my current max notal until then you values it current will become my oh [ __ ] how do I how do I point the current value right now can I make it won't be pointing.
How can I just take a pointer here? Let articles one I'll put a start here and uh do start plus once it push the value then it should move to the current next and after that start should become ++ so it ends until my current next is not done you store the head start value then move to the next pointer Change the start pointer so it will change the value.
I hope this works.
Finger crossed.
Still getting n this was not supposed to be null.
Okay, let me put until my current is there. Till then you do.
Why I'm getting current as? Okay. Okay, I made a mistake. I need to I need to use current node since my other variable here named as current is uh giving me some errors.
Now we have the current node current node and everything and this can go to this thing.
If my pointer is right then you should go oh my god I got everything wrong bro.
What the [ __ ] Why no values were pushed?
Since I found the issue until current I and current next element Run.
Oh [ __ ] bro.
What is it saying? Null again. Why getting nerfed? So many nerves.
Current is supposed to not be null.
Did I do some mistake here?
Mistake right now.
Um Should I create a new new new new list inside.
The next node is null. So when you do you move to the null you try then you try to add value inside it.
You only created one node. What do you mean by have to create every node?
You're not creating new nodes inside loop.
Don't override. You already set the first value.
After that you create a new not you should be doing instead this I have to create a new value not modify.
Okay, I need to do this current node will be okay. I need to create new new nodes not like this.
What was here? New list node of how is this even working? Oh, it should be like next next and after that uh after that we can do this thing but should be val right setting the value right first node represent the value not modifying val current one everything's fine I guess now this should So what we did was we rotate wrote a rotate function and after that we converted this to array again and rotated it places right and after that we writing back to the result and now pushing I made it too much complicated is this because of zero the second one did not even rotate Ready?
What are you doing?
Split into parts.
How do I get the value like this thing here?
First node will contain the value of the text.
Okay.
First will be inside this and next to implement this thing.
split into parts.
So imagine we have been given this whole thing.
Yeah. When did you message me?
BJP won. No. Congratulations.
I'm not more into the politics, but still congratulations.
Uh, easy. Wow, this is easy.
But they given staff level, bro. L6 for this thing, I guess.
What is staff and L6 proficiency?
uh like an SG3 at Amazon or maybe big tech companies I guess f or if you know how to split the English then this is not a top tier question I guess they given me k value I need to split this head into um equal parts I guess if it is not there then we have to push some empty values I staff staff level is think L6 L6 in fan man and big tech companies.
I did Google for that.
What does staff means in fleet code?
A staff software engineer role often L6 or equivalent higher level system design and uh yeah kind of big big tech guys.
What the [ __ ] I'm not L6, bro.
Oh, you're L6. Nice.
What need? What should be done, right?
We have been given a head and uh we have to return a list node and we need to split them into k equal parts.
The value is given as three but why are we having four values here?
What [ __ ] is this?
He could have done 1 2 3 and 4 5 6 7 8 9 and 10 11 and 12 for that he would have left empty man draw.
I'm really bad at explaining.
Look at this. I could not even solve this thing. I took the problem but I could not solve it.
Okay, they're saying like um you'll be given a head. So, this is head right.
Pardon me, man. Like uh I'm using my mouse to write whatever I'm writing here.
So, this will be your head and k will be given. Imagine if k is two.
What we need to do is take this two and uh put it in the result array.
So what will be one two?
A [ __ ] bro.
This will be the first kind of pair I guess. 2 three and so on. How many we have? One 2 3 4 5.
If you're getting even number then then splitting is easy. Getting odd is harder I guess. Three 1 2 3 1 2 3 1 2 3 and 10 is left.
But what they did is like 1 2 3 4 and then they did 5 6 7 and then they did 8 9 10. Why? But the value was given three. As for the first example, the first one was given like 1 2 3 but the K value was five. I guess where is that thing here?
Here we here we have only three elements 1 2 3 but K value was five.
So what you did is like uh He took the first value and stored it here. Second value here and third value here. After that he just put two empty placeholders. But why do you need to do it here? We have to only find the K k= to 3. Then it should be 1 2 3 and 4 5 6 7 8 9 and 10 11 12 will be like empty array. I mean empty placeholders.
No, here they given three man.
I can't understand this, bro.
Input has been split into consecutive parts with size difference almost one and earlier parts are larger than the size and later later parts.
Input has been split into consecutive parts with size difference at most one.
Oh.
Twitchy twitchy.
Oh, we got four followers.
The [ __ ] Why is this chat not working, bro?
So many people are alive. Sorry. Alive.
Al life.
He killed everyone.
What the [ __ ] What is a lead code?
What is a lead code profile? Huh?
What is a lead code profile?
Are you asking my profile?
My dumb profile, bro. Dumb profile.
Dumb bust profile.
This is This is my profile.
I'm staying undercover right now. Like I'm from Western Sahara.
What the [ __ ] Why am I even sitting in the PC, man?
Like, nobody there. I mean, he's he's there, but he's not sleep.
Oh, I'm top 98%age.
Oh, you mean I'm like out of 100 people?
Like, I'm I'm on the place. I'm like 80 I'm in 98%.
What does this say?
Holy [ __ ] 44%age. Did I even do this many? I did not even remember like I'm doing this thing. I only attended five, man.
How How is this even possible?
These these many people attended the What the hell is this?
And when will I get this thing?
What the [ __ ] is 98%?
We have zero questions or wrench is like zero questions on what is wrong with your wrench.
I think I can get it here.
Uh, it's W3 NCA. See, this is how we did. Uh, I mean, what do you say that?
Doxing.
This is how we do uh dox people.
What the [ __ ] W3NCS.
This is what I type, bro.
W3NCS.
There we go.
This is you, right? Yeah, this is you.
Golang Python. Yeah, this is you.
See, this is how I You follow me? What the [ __ ] Why are you following me, man?
Oh, you're top 29, bro. Damn, bro. Top 26 percentage.
Like 74K people have attended there.
Oh, your graph is crazy, bro.
You have been grinding from last year.
Wow.
Keep going, brother.
Do you solve more than 10 questions a day or what?
3 years. What the I think this is your second profile.
You're lying to me. I'm following you while I'm following you. What is box?
Let's let's do the arrange uh what what do you say this portfolio right?
A security focused learner while learner working through CTFs, labs and real world attack surface to understand how system actually breaks, how to fix, stop attack before they happen.
Oh, where is your certification? You have to mention certification. Let's oops 44.
What do you have in archive?
Oh, all this I think I think all these write ups I guess minimalisms is intentional clarity over noise. What is this?
Ah [ __ ] I became god now.
My eyes are gone.
No search done by me. When are you planning to do then? Contact leak everything. Yeah, let's go. We leak our uh Ren's.
This is our Ren's uh email and uh what the [ __ ] is this?
I sing communication.
It was nice doxing the wrench. I guess what do you have in the GitHub then?
Somebody wants to flex in the I mean somebody wants to flex their lead code profile or GitHub profile. You can share you can share the username. You can share the username if you want.
I'm just doxing everyone now on the live.
Hey, did did did you guys hear this music? Uh, I made it using the AI.
Where the [ __ ] is that?
Listen to this.
Yeah, it's for every dev. Still stuck in tutorials.
Still waiting for that first offer.
Cold guy in the cold base.
Let's go. I wake up late, laptop on my lap. Another day where I'm stuck in a trap. Le code open. I'm staring at trees, but my brain says, "Bro, just let it be." Functions break when I think too hard. Life feels like a badly written card. Merge conflicts in my real life script. Every dream feels like it might just slip. Apply to jobs. Got we regret to inform. Now the rejection feels like the norm, but I still type code when the world goes mute. Trying to turn the struggle in to prove. Yeah, I'm down, but I'm not done. Every failure just makes me run. One more try, I reload the pain. WATCH ME TURN IT ALL AGAIN. I'M cold guy. I build from zero. Working dreams to a golden hero. Fall out, but I don't stay down. I turn my loss into my crown. I'm cold guy. Still in the fight.
Cing through the darkest night. Don't die yet, but I still create. I build my future. I don't wait.
Now I'm switching stacks like I switch my mood. Full stack grind. Yeah, I stay in the loop. React front hand back and flow. Trying to build what the companies want to know. D say pain still hits my head. Binary search, but I feel half dead, but I debug life like I debug code. Turning pressure into a stronger mode. Gen tools in my workflow now.
Making smarter apps. Learning how not to syntax. I think systems building solutions. Breaking limits. They see results. They don't see nights. They don't see struggles. Only highlights.
But every just my way. I'm getting closer. Every day I'm golden guy. I build from zero. Following dreams to a golden hero. All I break, but I don't stay down. I turn my loss into my crown.
I'm going guy. Still in the fight.
Golden. The darkest night. No time yet, but I still create and I build my future. I don't wait.
Now I see it clearer than before. Every rejection open the door. Not hired yet, but I'm still in motion. Coding my way like an ocean. One day off a letter in my hand. Till then I'm building. I make my stand. From stack overflow to life control. I CODE MY PATH. I OWN MY ROCK.
I'M GUY. I BUILD FROM ZERO. Dreams to a golden hero. Fall. I don't stay down. I turn my ros into my crown. I'm guy.
Still in the fight. Going through the darkest night. No, but I still my future. I don't >> randomly kill processes in the background to optimize the system.
>> So every still figuring it out.
>> You're not behind, you're just building code guy out.
Has 31 has 31. Damn.
How was the song, man?
It's all created by [ __ ] AI called as what is it?
I guess yeah.
Okay.
What is walk? Are you walking somewhere in the walk?
Oh, you you're a BTS fan.
Is this BTS or like something different?
I don't think it's BTS.
Maybe something similar to BTS. I guess I don't know who is BTS.
You have 188 star. I'm [ __ ] crazy.
Did you start 188 repos are like Oh, you start mine. What the [ __ ] I have only three stars.
What is this?
>> What the [ __ ] I'm not I'm not [ __ ] fan of BTS, man. What the hell? I said I don't know BTS. He didn't say I know BTS and I love BTS or something like that.
Um, fiber. What is fiber, man?
The hell is fiber? Fiber is a language.
I never heard of fibers.
You have it in the tag.
Is this elen ring? It's look it look like an elen ring thing or transformer. What the hell is that?
Okay, let's code. I mean, let's uh solve this brick thing. What the hell did we?
So whenever our K is greater than um how do we say that K is greater than our length then we can insert the empty values at the end.
Otherwise what we need to do is like split the array before we even start splitting. I mean like making up the pairs. I guess if the value is three then what we need to do is check do we have equal pairs of three here. We don't have equal pairs of three right. Do we have we don't have we have one here. So since we don't have equal pairs of three what we need to do is like first we have to take one more here.
I don't know this will increase I guess I don't know how will I manage I think oh okay I don't know what the hell is that something similar to that in Elen drink what the hell is the name of the boss Fire boss, I guess.
Ah, this is the one. This is the one.
Ah, this one. This one. It looks similar to that. See, see this is what you had. I guess you see this wrench. Same, right?
Uh, it was standing in the same position, right?
10 C.
See this profile and uh see this image looks similar, right? This one and this one. This one and this one.
See, this is why I told Elden Ring.
Bro, this question is so hard. Bro, we need to even determine before we even start splitting the link list. How do you even split the link list? Um, do you need to create a separate note for everything? Whenever you do this then we have to maintain all these values somewhere so we can just get it quicker as possible.
Why is DOS is sitting in the VC alone bro?
Who heard him?
He did not even reply bro.
Um, this was asked in the weekly contest 58.
Did Did I enroll in the next contest?
I don't have to. I guess Oh, I did not even register.
Okay, this is registered.
All right.
If my value is three and k is five, then it is obviously greater than the value.
Obviously greater than the value. So we have to split.
All right, I'll be right back after my lunch. I mean sorry dinner.
You going to [ __ ] hand it?
Where's the opacity and stroke?
Oh, this is wrong. It should be like this.
Wow, my handing is so good, bro. Even on the mouse.
Okay, be right back after my dinner.
You guys can have fun until that if you guys can start or give me some hint here. So, it will be really useful for me since I don't know how the [ __ ] am I supposed to do this.
Let me share the question link. If you want you can join. Until that I I'll finish my dinner and come back.
Don't copy paste from this RGBD. Man, we could learn. We'll learn together.
Since I'm doing the same, but I'm still saying you to not do. Let me share this so we could learn in real, I guess.
Join this link. Join this link.
Join this link. If you cancel then uh don't copy paste from the charg until that I'll just have my dinner and be right back in few minutes or like I'll be back in 7 minutes or 8 minutes.
I'll do as much fast I can as possible man from my side since I don't have time tomorrow I have to go to hospital after my elder brother for my mama's I mean my uncle's uncle's son be right Hello. Hello.
Okay.
How to do this question man?
Length of each part should be equal as possible. No part should have a size of differing by one more than one.
If my k is greater than my length of this thing, then we need to if k is lesser than uh uh the total number of pairs I guess then we have to increment one in the first and rest will be same I guess.
But if it is greater then we have to do it in this way. How do we store an empty value? Will it be null? Even null will be shown here. Null. We can't store empty. I guess you store an empty undefined. Okay. Given. You can either store undefined.
What is this?
join if you want to solve this or you can solve.
There's a chat over here.
Uh this is not needed. And okay, I think this is too big. Make it smaller here.
Now it's good.
Okay. Okay, now I'm able to see the chat as well as the question as well as my coding panel.
Now I need to just figure out how I can make them pair with each other.
Should it be length of my should it be length of my this thing uh list divided by k then will we get the equal pairs?
Okay, so many people join.
Alice, do you guys know JavaScript or should I shift it to the C++ or Java?
Which language do you prefer?
I just want to learn. So it doesn't matter for me like which language you prefer.
In the end the solving matters and how we are solving it.
Okay. So if we divide the total elements with K how many pair we getting one.
So we have 10.
Yeah, we we getting the total number of element needed for that uh when we have three.
This is something wrong for the lower value. But when it is higher then we are able to figure out how much we need for the pairing of 1.
when we do 10 / 3 then we're getting three which is like equal pair we need to figure out and but for this thing we are getting wrong I guess no when whenever our k value is greater than our disc value then we have to divide the k value by list size then we are getting a decimal point answer uh let me show LC.
So the length of my this thing is 10, right? 10 / 3 is like 31 3. So we get three and very is clean. Okay. Now we have k = to 5 and head is head length is like three.
So what we can do is 5 / 3 you get 1.6 ignore the six and 7 you get one which is this this value.
So whenever k value is greater than that then we have to divide the k with the total size and whenever our k is lesser than my total size then divide the head length variable a. So we get the number of pairs we need to form. Right? Now we only need to do is like uh return the pair.
We found out how can we how can we uh get the total number of pairs required for everything.
Now only thing is left is we have to just return the p.
Now we need to find how can we return the pattern.
divide the k. Uh okay let let me write simple simple a divided by h size is smaller if k is greater else um maybe head size divided by k value which will be like equal number of number uh items needed better.
Okay, people left. Why people are leaving? Anyone know JavaScript?
Anyone wants to join?
If anyone is if anyone is interested to join My is sitting still in the DC, bro. What happened to Das?
is sitting alone like past one hour.
Maybe he's focusing on something and shing on. He just joined the channel.
Possible.
What do you call them?
Pomodoro.
This is over the total number of element needed for the pairing up and we need to up my K value is lesser than you have split.
K is greater.
Whenever K value greater then you have to split.
When your keyword is lesser than my total length then you have to join.
Oh, do I need to form a new list for everything like we did for the past question?
Since for the past question we did this thing right uh where is that list thing we created every new list node and appended the array element whatever is there in the head array and we got the head array from the head can't we just do the same thing for this thing and only push uh I mean only slice and push until the number required But this is wrong way of doing that thing. I guess this shouldn't be that hard.
We only have to do is like slice if k is three then we have first we slice three.
No, if if this is greater than my if this is lesser than my element and then what we need to do is first we have to pull four elements and after that whatever is given then 3 33 3 but in the end you should not give uh empty one only one is uh allowed when k value is greater than my total size Uh okay let's try by brute forcely how people will do if they don't know link list example mean if I don't know the link list how will I do this first what I will do is like I will push all the values into my array and after that I will slice them and put it back again there I guess but this is long way of doing but uh still you can check if our logic is working or not. Once it works then we can learn how to do with the link list then.
So for adding the value inside the array we know already we did right like you can just keep ahead a r and while my current is there until then what you do head a push current.
Do you need to do current val? I mean do I need to do again current next to move the next element or it's needed since it will not work after the next element. So we have to do it's like++.
Now we should have all the values inside the header I guess.
Oh, everyone left. Why everyone's leaving?
Oh, we have all the values. Whatever was needed for that thing. Now we have to only slice and append, bro. That's it.
Boom. We done then only what we need to do is like slice and append as for the condition but this is not the right way of doing the linguist questions I guess I'm doing in a different wrong way maybe an iterative approach on my own I'm just making my own simulations what we need to do is slice K is given You have to slice and uh slice and move it in. Right.
Now slicing operator is slicing operation.
How will we slice from the starting index till K index after that we have to make our isk or what?
Let me try if I slice. Okay, let me keep on result for that.
Even then everything will collapse man like it is array of array inside array we have another array and another array and another array I don't think this will work let me Okay.
Is he writing something or like he's keeping the cursor where Oh, he's doing something.
Cool, bro. Do whatever you can.
slice from my I till K index. After you uh slice, then you make my K.
Is it right or wrong? Like what the hell?
Let let me let me store this index current index.
So what will happen? My I will become current place.
This should split everything. Right.
After you slice, after you slice, then what you need to do is like push into the result and pushing into result have a different way of it.
Can I current index but current index will have only the value. I guess we need to pass header slice.
I comma K K. K minus one.
No [ __ ] idea. I know. I know this will not work, but still I'm just trying to know something is off.
This should throw an error right now.
Yeah. Here we go.
Oh, this is header A. Sorry. Header A header slice. I don't think this will work since my header is not an array.
Since header is not an array, slice operator won't work.
Okay, it is it is an array. But since we're doing it inside the for work slice should work.
Do we really need this slice?
We don't have anything in the slice.
Nice.
Why is this happen?
If I console down the current index, what do we have here?
Current index really have the slice value.
I got a runtime error right now.
We are getting 1 3 1 2 3 and we were supposed to only slice since a file.
Oh, slice. What does slice do? Slice slice from 1 to K. Y to K. So Y to K will be like the value is given five. So it will slice everything.
[ __ ] We need a different approach right now.
Krishna is doing something. Let's go.
Krishna, put something hard.
Yo, guys. Need help, man. Need help.
Need help. Help. Slicing is completely off. I guess this won't work as I is not working.
If K is greater then we need to size one thing. If lesser then we need to size everything together.
Yeah, let's go. Krishna is fixing my syntax.
I + K. Oh, I + K minus one.
How this will work?
Okay, let me let me tell him like don't submit uh just what is the output? put now.
So our result is empty right now.
It shouldn't be empty.
We should at least have the current.
Oh, he added something new.
We still got push.
Can we add a green thing here? I never saw this thing.
It can only have a start and end, right?
Yeah. Start and end. Optional. End is optional. I don't put end, then it will automatically take until end of year.
Oh, we can even copy an array with slice. Damn, bro.
Get from the index to end changes the original Peace.
Are you asking why I'm doing console or Uh I can do it in any language but doesn't matter.
Java Java understand a bit I guess they should be same right like next and uh we have next we have next Why did he switch again?
Did it go or what? I'm not able to see his cursor right now. Is he inactive?
If anyone else wants to join, then they can join. Man, this question is like [ __ ] my brain right now.
Your JS code was almost right. What the [ __ ] are you saying? It won't work, I guess.
It can't run. Okay, it won't work until we fix the slides and uh moving to the next indexing.
This is not possible.
Slice and up.
If index is greater than greater than if greater than this then instead of doing the string current is not even k I think that will If my K is greater than my head.
Oh, since I do this thing. Okay, can do this. Since you're taking everything as single value, right?
Then what we need to do is like push
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 views•2026-05-28
How agent o11y differs from traditional o11y — Phil Hetzel, Braintrust
aiDotEngineer
450 views•2026-05-28
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29
🚀 BCS613C Compiler Design | Module 1 to 5 Schema Evaluation 🔥 | VTU 6th Sem 💯 #VTU #bcs613c #exam
Pranavaa-y4y
104 views•2026-06-02











