yswnth

4K posts

yswnth banner
yswnth

yswnth

@yswnth

build great stuff

Katılım Kasım 2020
428 Takip Edilen552 Takipçiler
Sabitlenmiş Tweet
yswnth
yswnth@yswnth·
manifestation is simple. just write it and do. now mark it done.
English
0
0
3
211
yswnth
yswnth@yswnth·
good night folks.
English
0
0
0
13
yswnth
yswnth@yswnth·
my tomorrow’s work to compelete ~ 9 june 2026 > complete that two pending tasks related to project. > at least one session of ml concepts > complete some problems from strivers a2z sheet > one outreach session regardng solicate. > some walk, exercise > twitter post > more twitter posts > engaging with fellow people and fixing sleep schedule.
English
0
0
1
19
Daniel Barada
Daniel Barada@danielbarada·
Never have a zero day. One set at the gym counts. One paragraph written counts. The bar is deliberately, almost ridiculously low. The only way to fail is to do literally nothing.
English
5
10
81
1.4K
yswnth
yswnth@yswnth·
i really don't know if we can quote with an article too and post. we can ???
English
0
0
1
7
yswnth
yswnth@yswnth·
this is just a transcription of me explaining what i really solved with dsa placement session for today i thought why not. let's just post like this
yswnth@yswnth

Okay, this is mainly regarding today’s DSA placement session. Okay, I have completed around two questions from Striver’s A2Z Sheet. Two hard problems: first one is 3Sum from the array, and second one is 4Sum from the array. Within these two problems, usually there will be three kinds of solutions, right? Brute, better, and optimal. For both of them, what I tried to solve is all three solutions. Let’s start with the first problem, 3Sum. The problem statement says that we need to find a set of three elements such that it sums up to a specific target. The target will be given and the array will be given. What we need to provide as output is a set of triplets. That’s the problem statement. Initially, the brute-force solution is very simple. We try to generate all sets of three numbers and check if the summation matches the target. If yes, just sort the order and add it to a set. We use a set data structure for this because we don’t want duplicates. It’s also mentioned in the constraints of the problem statement that we shouldn’t output duplicates. Yeah, this is the brute-force solution. The better solution is to use hashing. What we try to do is, let’s consider this as K, right? We know that: K = target - (I + J) That’s the logic we are going to use. What we really do is use just two loops, and for the third one, instead of a loop, we’ll just check with a hash set if the required value is already present. If it is present, then the target condition is satisfied and we’ll just add it to the output set. That’s the main workflow. Now going towards the optimal solution. The optimal solution uses pointers. I, J, and K are used here. I is used as a constant, and J and K are used as pointers. This can be done using the two-pointer method. What we try to do is fix the I value, and we’ll consider a sorted array instead of a normal array. Then what happens is we’ll check the remaining summation of J and K and compare it with the actual target. If it’s less than the target, we’ll move J forward because the value has to increase, right? That’s the main concept. If the obtained value is greater than the target, then we need to decrease the value, so we’ll move K from the back side. That’s the main objective. The looping condition for this one is J < K. That’s the main condition because we need to check the whole range. If J and K cross each other, then the loop should end. That’s the main point of the optimal solution. Yeah, this is for it. For the next problem, 4Sum. It’s quite simple. It’s very similar to what we did with the 3Sum problem. For the brute-force solution, it’s directly related to the previous problem. Just generate all four elements and calculate their sum. If it equals the target, then append it to the set after sorting so there will be no duplicates. The better solution is to use hashing itself, but we’ll consider one extra loop because of the extra element involved. That’s how we directly solve this problem. We’ll just have the loops and then apply the hashing logic. For the optimal solution, it’s very similar to what we had done in the previous problem. We’ll consider I, J, K, and L. Within this, we’ll try to keep I and J through loops, and K and L act as pointers. Same previous logic: If the summation is less than the target, then we’ll move K forward. If it’s greater than the target, then we’ll decrease the L index. One more thing is that: I starts at 0, J starts at I + 1, K starts at J + 1, and L starts at the last index, which means N - 1. Yeah, that’s the logic. This is the optimal approach to solve this problem. For today, I have done only two problems. Yeah, this is it for today. Let’s see if I can rock more tomorrow. I think Largest Subarray with Sum Zero maybe I’ll be solving tomorrow. Yeah.

English
0
0
0
10
yswnth
yswnth@yswnth·
Okay, this is mainly regarding today’s DSA placement session. Okay, I have completed around two questions from Striver’s A2Z Sheet. Two hard problems: first one is 3Sum from the array, and second one is 4Sum from the array. Within these two problems, usually there will be three kinds of solutions, right? Brute, better, and optimal. For both of them, what I tried to solve is all three solutions. Let’s start with the first problem, 3Sum. The problem statement says that we need to find a set of three elements such that it sums up to a specific target. The target will be given and the array will be given. What we need to provide as output is a set of triplets. That’s the problem statement. Initially, the brute-force solution is very simple. We try to generate all sets of three numbers and check if the summation matches the target. If yes, just sort the order and add it to a set. We use a set data structure for this because we don’t want duplicates. It’s also mentioned in the constraints of the problem statement that we shouldn’t output duplicates. Yeah, this is the brute-force solution. The better solution is to use hashing. What we try to do is, let’s consider this as K, right? We know that: K = target - (I + J) That’s the logic we are going to use. What we really do is use just two loops, and for the third one, instead of a loop, we’ll just check with a hash set if the required value is already present. If it is present, then the target condition is satisfied and we’ll just add it to the output set. That’s the main workflow. Now going towards the optimal solution. The optimal solution uses pointers. I, J, and K are used here. I is used as a constant, and J and K are used as pointers. This can be done using the two-pointer method. What we try to do is fix the I value, and we’ll consider a sorted array instead of a normal array. Then what happens is we’ll check the remaining summation of J and K and compare it with the actual target. If it’s less than the target, we’ll move J forward because the value has to increase, right? That’s the main concept. If the obtained value is greater than the target, then we need to decrease the value, so we’ll move K from the back side. That’s the main objective. The looping condition for this one is J < K. That’s the main condition because we need to check the whole range. If J and K cross each other, then the loop should end. That’s the main point of the optimal solution. Yeah, this is for it. For the next problem, 4Sum. It’s quite simple. It’s very similar to what we did with the 3Sum problem. For the brute-force solution, it’s directly related to the previous problem. Just generate all four elements and calculate their sum. If it equals the target, then append it to the set after sorting so there will be no duplicates. The better solution is to use hashing itself, but we’ll consider one extra loop because of the extra element involved. That’s how we directly solve this problem. We’ll just have the loops and then apply the hashing logic. For the optimal solution, it’s very similar to what we had done in the previous problem. We’ll consider I, J, K, and L. Within this, we’ll try to keep I and J through loops, and K and L act as pointers. Same previous logic: If the summation is less than the target, then we’ll move K forward. If it’s greater than the target, then we’ll decrease the L index. One more thing is that: I starts at 0, J starts at I + 1, K starts at J + 1, and L starts at the last index, which means N - 1. Yeah, that’s the logic. This is the optimal approach to solve this problem. For today, I have done only two problems. Yeah, this is it for today. Let’s see if I can rock more tomorrow. I think Largest Subarray with Sum Zero maybe I’ll be solving tomorrow. Yeah.
English
0
0
0
42
neural nets.
neural nets.@cneuralnetwork·
if you had to restart your career from zero tomorrow, what's the first thing you'd do?
English
68
2
158
17.3K
Neural
Neural@imNeural·
@cneuralnetwork start with DSA. then move into ML... implement every algorithm from scratch and build 2-3 projects around each concept. and document the entire journey publicly as i go.
English
3
0
10
758
Giyu
Giyu@rutu_3·
Best thing i received from AI : - Your brain learns through retrieval. - Think about it like gym training. - If AI lifts the weight for you every day, your muscles stop adapting. - The same thing happens with coding. A lot of developers are experiencing this now.
English
6
0
26
439
yswnth
yswnth@yswnth·
@amritwt which models you actually checked
English
0
0
0
50
amrit
amrit@amritwt·
open source models are really great for most things but one: tool calling
English
43
4
257
13.2K
yswnth retweetledi
abhinav
abhinav@AbhinavXJ·
Quick no BS guide on how to get job ready if you are starting from 0 in 2-3 months A lot of Dms I get are like "I've wasted X years in college" now how do I get a job quickly or people who want to switch here's what worked out for me, and what I've learnt from others who are doing well in industry you can follow this plan for the next 2-3 months, and even if you are starting from nothing, you can get job ready > Lock tf in. You can't afford to waste anymore time. > Start learning CS fundamentals daily, that includes OS, DBMS, CN, OOPS. 1 hour daily is enough for them. These 4 topics are enough and asked mostly. > Practise DSA daily. Pick any sheet, maybe Neetcode's or watch kunal's playlist. You can skip this step if you have graduated, in that case DSA ain't that imp if you need a job quick. But still, familiarise yourself with basic stuff. > Pick frontend dev. It's the easiest to begin with. Learn React/Next. Make some projects. Not just clones but good frontend ones. Give 1-2 weeks to it. > Pick backend now once you feel lil comfortable with frontend. Pick either NodeJs or Go, don't take Rust. you don't have time for it. Make some good backend projects. > All this while most important is to keep applying for jobs with updated resume. > Don't do Linkedin Easy apply, spend 30 mins daily reaching out to startup founders, hiring managers etc > Apply through platform like Wellfound Naukri Indeed X ( cold DM) Linkedin (cold DM) > Ask for referral to anyone you know or don't . Ask for help, don't why away, but out that efforts required. If you just follow these steps you would be in a much better position after 2 months, and hopefully with a job All the best!
abhinav tweet media
English
7
4
103
6.3K
neural nets.
neural nets.@cneuralnetwork·
good morning
English
6
0
21
1.3K
shekhar
shekhar@shekhar_tw·
good morning folks! It's monday again.
shekhar tweet media
English
9
0
51
568
shekhar
shekhar@shekhar_tw·
ngl this looks cool
shekhar tweet media
English
13
0
52
6.2K
yswnth
yswnth@yswnth·
@shekhar_tw learning and working. been towards dsa and all 🤧
English
1
0
1
6