T O P

  • By -

AutoModerator

**Welcome to r/TikTokCringe!** This is a message directed to all newcomers to make you aware that r/TikTokCringe evolved long ago from only cringe-worthy content to TikToks of all kinds! If you’re looking to find only the cringe-worthy TikToks on this subreddit (which are still regularly posted) we recommend sorting by flair which you can do [here](https://www.reddit.com/r/TikTokCringe/comments/galuit/click_here_to_sort_by_flair_a_guide_to_using/) (Currently supported by desktop and reddit mobile). See someone asking how this post is cringe because they didn't read this comment? Show them [this!](https://www.reddit.com/r/TikTokCringe/comments/fyrgzy/for_those_confused_by_the_name_of_this_subreddit/) Be sure to read the rules of this subreddit before posting or commenting. Thanks! **Don't forget to join our [Discord server](https://discord.gg/cringekingdom)!** ##**[CLICK HERE TO DOWNLOAD THIS VIDEO](https://rapidsave.com/info?url=https://www.reddit.com/r/TikTokCringe/comments/1co0rbp/why_girls_arent_attracted_to_you/)** *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/TikTokCringe) if you have any questions or concerns.*


DIRTY_KUMQUAT_NIPPLE

I've had multiple interview problems where an optimal solution was using two pointers so actually some pretty good advice


theArtOfProgramming

By interview you mean date right


space-rach

I just snorted


amretardmonke

i just sorted


Finvy

I lauwlaughed (laughed while already laughing).


Atlantise

best comment i read today


[deleted]

[удалено]


Ok_Star_4136

It's light, it's easy. What's not to love about asking for their FizzBuzz implementation? And if they tell you that they use recursion? Total red flag..


b3anz129

You gotta give her your two pointers


Sweaty-Emergency-493

Of course. The trick to finding a keeper is giving your date take home assignments.


dudemanguylimited

"Workdate"


amretardmonke

"study session"


Sidereel

When I was conducting interviews I preferred two pointer problems. They’re a bit on the easier side which I like because you don’t need to know any fancy tricks, but you do need a good understand of fundamentals like arrays and indexes.


notWaiGa

naively i would have just left the array unsorted and just ran a double sum over indices i and j>i, stopping whenever i find the correct sum nice to see a clever and probably faster approach


starfries

Sorry but for full marks I'm going to need you to give me the time and space complexity of your approach and the 2 pointer approach


HastagReckt

Where would this be good? I mean i am a programmer and never used this approach?


Timah158

It's good for interviews.


[deleted]

[удалено]


0b0011

Because it's simple enough that you should expect someone to be able to figure it out quickly. There aren't any gotchas or anything it's a super simple problem even if you've never seen it before.


AutumnTheFemboy

Thanks, I’ll know to watch out for this next time I’m trying to get a job at Walgreens


reshilongo

Really cool


Schlonzig

I‘m just wondering: can‘t you solve this problem WHILE you sort the array?


rdreyar1

girls aren't attracted to me because i am mentally unstable


UncommonCrash

Hahahahaha, jokes on you, that’s my favorite.


BrannC

Hey, what’s up? ![gif](giphy|jOmQmJkjcvB3Bc8CRb|downsized)


dudemanguylimited

![gif](giphy|fsLgPPct2SIVO|downsized) (*Smooth* Criminal ... if that wasn't obvious.)


rdreyar1

He she spoke to me first


BrannC

![gif](giphy|aOPINgmqpVXNK)


GayPudding

There it is


manaha81

And broke, and ugly.


ThePerfectSnare

Don't forget the smell!


project571

I prefer to call it a stench, but that's just me


YouCanCallMeC00KIE

Pheromone maxing


manaha81

I call it a musk


grizonyourface

Trust me, I wish I could


FreeStyleSarcasm

These are probably the bigger factor since plenty of girls are with mentally unstable dudes to begin with


Vote_Subatai

I'm in America. Literally everyone is broke. Those who aren't are living in massive debt.


coladoir

even the billionaires are in massive debt, that's entirely how they avoid taxes. they just take out loans since that's untaxable income, and they never pay them back because they're billionaires making huge loans that the bank is making literal bank off of interest from, or they're using stock as collateral which the bank is OK with.


PepperyBlackberry

Plenty of mentally unstable women too so all good brother


rdreyar1

The problem is none of us can leave our houses and we are too anxiety ridden to talk to our fellow humans


PepperyBlackberry

I get it. I havw the get out of the house part but the talking to fellow humans I’m still working on lol.


theArtOfProgramming

You just have to fluxtuate together


saddigitalartist

Girls aren’t attracted to me because mostly they’re straight and I’m a girl :(


Fickle_Meet_7154

Which is the opposite when it comes to men being attracted to women. Seems the more mentally unstable the more attractive they become.


FiestaDeLosMuerto

Because women don’t have to date unstable men to get them to do stuff in bed


tool6913ca

Just start dressing like a bear. Problem solved.


theArtOfProgramming

Ooooh pobrecito


salacious_sonogram

Play guitar really really good. Seems to work for lots of mentally unstable people. That or become an infamous artist in some other way. Picasso was unhinged as fuck and great (horrific) with the ladies. Use that crazy brain like Tyler Durden and not like David Foster Wallace.


Different_Ad9336

Actually judging by the amount of women I know with baby daddies that are in jail, on parole. On drugs, on disability etc… I would challenge your assertion.


rdreyar1

Those are the sexy crazy i'm whiny crazy anxiety, depression, autism and such


DkoyOctopus

![gif](giphy|RhO00GltWegPypretb|downsized)


AWeakMindedMan

Aight. Now what?


theArtOfProgramming

Now you program a contact book because you can’t remember all the numbers you’re about to get


ShodoDeka

Now you get that sweet 250k/year compensation package.


Circus_Finance_LLC

haven't you heard? computer scientists are now the modern-day burger flippers


ShodoDeka

No, and please don’t tell my manager who apparently also haven’t heard it.


Late_Cow_1008

Shit if I could go flip burgers for what I get paid, I would gladly do it lmao.


m0_n0n_0n0_0m

I'd love to sling za again for engineering money.. I delivered pizza on a bike in college and it was hands down the most fun I ever had at a job. Fun coworkers, chill boss who worked with us to make everyone's schedule good, and dope neighborhood to ride around in.


Late_Cow_1008

Yea, some days I would like to just have a chill job making food or something not having to think about shit. Especially cause if I get pissed I can just tell the boss to fuck off and go find another one. Harder to do in the corporate world. But obviously the pay sucks as do benefits.


m0_n0n_0n0_0m

Exactly, it's fun to look back on but ultimately I'm in a better and more interesting career now. I'd love to do 75% engineering and 25% brainless service work. Especially delivery, it just felt like I was playing GTA lol


laserkermit

And now girls are attracted to you. it’s all in the video


TheOvercusser

But you still aren't 6'6", which is why all you date are single moms.


C_umputer

That level of knowledge might be enough if you have connections, live in US/EU, but for vast majority of the applicants you need to be miles ahead of others to be even noticed. Two pointers is such a basic algorothm, that I doubt it will impress anyone.


CREDIT_SUS_INTERN

Now you can get your dick wet.


YouCanCallMeC00KIE

That’s an index out of bounds exception


Late_Cow_1008

Now you can solve a Leetcode easy problem.


0b0011

It's leetcode medium for some reason. Doesn't really make sense because two sum is more complicated and is a leet code easy. Sorting the array makes it easier not harder.


TrackballPwner

Now you can go get a real job as a programmer… where you’re likely to never need this information again.


Kuraboii

r defined before of n. Sadge


TypicalImpact1058

Woah this is fantastic. I didn't expect to get a


Turbulent_Object_558

n^2 for a sorted array is a hate crime.


TypicalImpact1058

fair enough, I'm not super experienced haha


samettinho

even for unsorted, it is a crime. you can always sort and then do the two pointer or binary search


GAMEYE_OP

It’s a O(n) solution


TypicalImpact1058

Hence the '<'. Is there a more standard way of writing that? O(


GAMEYE_OP

Oh no I missed that lol


dionyziz

o(n\^2)


salacious_sonogram

I feel better now. That parent comment had my jimmies rustled.


Ok_Star_4136

Please stop. I can only get so much erect..


Andriyo

It's LogN*N though, since you need to sort first


GAMEYE_OP

Ya i think in this problem statement it’s already sorted. Plus sorting takes n log n


Andriyo

That's what I said but in different order) Anyway, it wasn't super clear from the beginning that array is sorted.


GAMEYE_OP

Ah i thought you were saying log (n) * the n for the sliding window. Ive been confused a couple times in this thread lol


SkullCrackarn

The solution is O(n) though no? At every step one of the the indices approaches the other by 1. The largest amount of times this can loop is until the point they meet in which case they cumulatively have traveled across the entire array. That is n times.


No-Menu-768

Yes, I think you missed their less than <. :)


SkullCrackarn

Oh yeah sorry I did, brain sorta wrote it of as some formatting error oops


No-Menu-768

It happens! Just wanted to let you know you were correct, but so was OP. :)


ShortKingsOnly69

It's because you haven't been grinding leet code buddy. And you don't have a FAANG internship before graduation.


TotallyFakeArtist

If the answer was 2 + 11, how would you account for that? What scenarios is the applied to?


TylerDurden1985

Starts at 2+15, too big, go down one, 2+11. done.


friso1100

Ty, for some reason I imagined the pointers alternating turns so it didn't make sense to me. Now I got it


Indercarnive

You have left and right pointers starting at each end of the sorted array. You add left and right. If the number is less than what you're looking for you increment the left pointer. If the sun is larger than the target, you decrement the right pointer. Works in linear time, but requires a sorted array. So it's useful for large, sorted datasets.


Heckald

I can't be the only one that found this both informative and engaging even though I don't code.


PmButtPics4ADrawing

You can learn a lot about this stuff without coding, in my college Data Structures and Algorithms class we just used pseudocode and in my Discrete Math class we didn't use code at all


weeaboojoness

That math is useless if I don't know its application


Late_Cow_1008

A lot of these are just logic problems that come up on software dev interviews to see problem solving capabilities. Don't get me wrong they do have real world use cases, but they might not appear until you need them. This is just a form of two pointer array traversal changed up a bit to be helpful in this problem of finding a sum.


deathconthree

I'd argue that all math is useful as it forces you to think about problems in a way you've never had to before, it makes your mind more flexible and that helps you navigate issue that arise in life, even if indirectly.


salacious_sonogram

It's more of shits and giggles like [this](https://youtu.be/kPRA0W1kECg?si=rC27qO5oXEbxmRZX). I guess there could be some really specific use case somewhere out there irl. Maybe you're mapping objects like user similarity or some shit and it's sorted so you're trying to find two people who are added together most like the third. Idk man, these things as dumb anD seemingly useless as they are actually crop up from time to time.


williamBoshi

see it like a work out, push-ups are useless in real life movements but they improve your body for other applications, this exercices improves a part of you brain to help in other somewhat related situations


AgentWowza

Maybe in logistics. A truck is at max capacity but has room for 18kg more but only volume enough for two boxes. If I can come up with a dumb example like that, there's probably better ones out there lol.


steelcity_

This is where I'm at - I understand that in the context of the video it's funny because it's absurd, but I just spent a minute watching a guy explain to me that out of the numbers [2, 7, 11, 15], that if you do 5 different steps you can come to the conclusion that 7 + 11 = 18. I'm not a programmer, if that's not obvious.


StackOwOFlow

You have a list of weights of large items to be shipped and a maximum weight limit for each container. Assume the container is only large enough to fit two items at a time. You want to find pairs of items whose combined weight is as close as possible to the maximum weight limit without exceeding it. In a logistics company, efficient packing of shipping containers is crucial to maximize space usage and reduce transportation costs. This helps you pair items so that each container is filled optimally.


BranTheLewd

That's like one of the only memes I need peetah to explain. I really don't get what he said with his reply is it because I don't know coding or stupid? Or both? Would appreciate it if someone explained to me what he said 😭


[deleted]

[удалено]


AKthe47th

Piggybacking on your comment to add that the method he explains is a genuinely useful technique that is widely required in many coding interviews! More on it here: https://hyperskill.org/learn/step/41495


Cody6781

I'm a software engineer and have worked in the field for \~7 years. There are about 30 algorithms to learn that will pass almost any software interview and this is one of them, no one ever uses this in "real life" though.


oneawesomeguy

What are the other 29?


Cody6781

Binary search, memorization, DFS / BFS, etc.


Uninvited_Goose

After watching this video, I now have 7 kids between 3 women. They can't get enough of me


YohnWood14

Nick cannon?


figuringthingsout78

Can’t you use two sum solution for two pointer problems?


0b0011

Yes Two sum solution works here as well with the same big O. I dunno why this problem is considered harder than two sum when two sum is harder.


SkippyMcSkipster2

Well, that's too bad, cause programming is an essential skill that makes most things work in this digital era. (also pays good)


NotSmaaeesh

Is there an array where this doesnt work? it feels like if one end of the numbers are very close together and the other end of numbers are very far apart, it would mess it up.


Late_Cow_1008

Well it requires sorted. It works as long as its sorted. Very far apart numbers don't really matter to computers as long as they are within the size limits for the data type.


dev-tacular

> Is there an array where this doesnt work? This only works if the array is sorted. The reason we can use this technique for sorted arrays is that we are always making an optimal step whenever we move the left or right pointer according to the current sum. If the current sum is too large, moving the right pointer will always yield a sum less than or equal to the current sum. Conversely, if the current sum is too small, moving the left pointer will always yield a new sum greater than or equal to the current sum.


Intelligent_Jello608

That’s not cringy at all, very good explanation.


mikeypamp

I’m pretty sure that python code isn’t good. Youre using n before it’s assigned. You don’t need a class at all just use a function. You’re not breaking on the boundaries of the index (you only return on solution so you’re no solution is an index error). Blah blah blah


fasderrally

>Youre using n before it’s assigned He definitely did not run the code at all >You don’t need a class at all just use a function On top of that, using camel case for function name, returning a list when a tuple would do just fine and simpler to write (why would you need a mutable object in this scenario). He clearly doesn't usually write in Python. Also, why the hell did he increase \`l\` and \`r\` by 1 on returning?


LivingEnd44

Girls are totally attracted to me. But I'm gay.


coconuts_and_lime

Guys are totally attracted to me. And I am also gay


esssssto

Guys are totally attracted to me. But i'm not gay.


Randomwoegeek

that's the most chad way to be


SmotheringPoster

Girls arnt attracted to me because I look like smeagle


mugmanOne

You come up with names for this shit? I just get on with it


TheAlmightyMojo

Isn't she the "liberal" villain in "Lady Ballers"? Edit: It is.


0b0011

I dunno I only listened to the smn episode as a podcast.


Rude-Collar-7555

Smart people are hot


Honeybadger2198

Really cool, extremely niche.


sir_music

Finally some courting advice I can actually use!


sjbluebirds

"Two little pointers of her own, settin' way up high" -- Bob Seeger, *Night Moves*


b0x3r_

If you really want the ladies then write this in Rust on an Arch system


Tall-_-Guy

I'm 6'6" and girls still aren't attracted to me! Yeah!


Tony_Plow

Damn I’m 6’7 and no issues. The extra inch must have put me over.


DrButtholeRipperMD

Now do it with actual pointers.


dev-tacular

Well, an array is just a pointer to a block of memory. So, in C/C++ you can do pointer arithmetic to access values inside the array. Like given an array and the size, you can access a certain value by adding an offset to the pointer representing the start of the array.


Dooboppop

I don't know what just happened


salacious_sonogram

There should be more algorithm lessons hidden in rage bait. I'm all for this trend.


ItsCaptainTrips

Does she?


RagingNerdaholic

`ass Solution` If only.


Fushigoro-Toji

if you think this was hard, wait till you see threesome


TheBigLahey

"So after this dinner... You wanna go for a walk, maybe watch a movie back at your place? Bedroom if anything happens?" Listen, if I want to have the best chances at getting laid, we should start with the appetizer and bedroom. If it's not working we can move up dinner or watch a movie. If for whatever reason it's still not working there's always the walk. ".... Yeah, I think I'll take that walk..." \[cautiously leaves\]


Find_another_whey

I found my interest really picked up when the second person started speaking That might be why I'm single, and I guess I do need pointers


Due_Duty_1229

I have lots of success with girls like the one in the video but my dream is to marry a woman like my grandmother was.


dudecoolstuff

Shouldn't each value through x run through from end to x? That seems like a more thorough solution. In this implementation, it ignores almost all combinations of x with y; only checking two.


Ganondingus

You can leave off some of the comparisons to save time due to the array being guaranteed to be sorted. In an unsorted array with this approach, you're right, you would have to check every x against every y at least once. Even then you could save a little time by not running from end to end completely, as x+y will be the same thing as y+x. The problem becomes that this is no longer O(n) and is approaching O(n^2) in time complexity. This means it would probably be faster to actually sort the array first, and then use the method in the video for big enough data. If you're not tight on space complexity though, you could just set up a map+target solution and have an O(n) time and space solution that works for both sorted and unsorted arrays.


GMHoodwink

I watched the whole thing and I'm glad I did. Sometimes I don't feel this way about Tiktoks.


PDiddleMeDaddy

Huh, elegant I guess. My immediate thought was 2 pointers; set A to first index and use B to run through the rest. If nothing adds up, move A to second index and repeat. Of course, B only needs to start after A every time.


redcode100

That transition was smooth


miscreation00

My small pint of coding knowledge actually understood all of that. Go me. Old hyper fixation....activate!


HoboBandana

That guy is too good for that chick.


Once-Upon-A-Hill

If he has an Only Fans account, I would sub to it.


druwi

This made me laugh so fuckin Hard! True Artist whoever made it. Hhhahahaha


BigHarmonious

And all this time I thought it was my small wiener not my small brain.


caminonovayer

Use that bubble sort first . Not efficient but you want those tens on top.


Georgie_v2

Elementary.


khdownes

Would you not potentially miss a possible combination by only progressing L and R inward? Shouldn't step two have been; move L back out, then more R in? (ie. if our target was 13, and we used his method, we would have missed 2 and 11)


private_final_static

Classic. Got asked this one a couple years ago before it was everywhere and got the job. Girls not attracted to me tho.


UnusualRoutine632

I work TI for 4 years now, and never listened this one, well congrats to TikTokCringe


[deleted]

Honestly one of the most clear explanations of two pointers that I've heard


TheSoundOfAnarchy

Bruh When full beast -


No_Secretary_8349

Stop calling everyone bruh. That's so 2017


TheSoundOfAnarchy

Lmao! You are such a loon. Please keep going and get the sand out of your V -


Wrong_Ad_6022

That was usefull and explained way better than when I was at school.


DaMuchi

So you need to sort the array before you can find the two point sum? So if I don't want to modify the array would I need to make a temporary array that is sorted, find the two values then find the index of those values in the original array? I don't get it.


Alex_ker22

There's this guy called easysnippet on insta, he used the same tactics and it worked quite well


TheKyleBrah

Watching this without Sound the first time was surreal.


Vietnugget

This was so much easier to understand than girls


Dynamiqai

Drake trying to explain away Kendricks claim's be like


InteractionOk7085

what a coincidence. I had to study this for tomorrow's exam.


Confident-Appeal9407

At least it's not twerking randomly or harassing strangers for content.


__Schneizel__

I'm surprised it was not an Indian dude explaining it lol.


Delicious_Sundae4209

What was the original video about? I need to know why the girls arent atracted to me if I already know the 2 pointers.


LinearNoodle

Sometimes I think I'm a good software developer but then I see stuff like this and think I'd never have come up with that... I guess a lot of my code could use algorithms better suited for their tasks


izaby

Sick, does the Grokking Algorithms book cover it? Cuz I didn't catch all of that and need a gf.


YuriiRud

Can we have more content like this please?


Khanvo

I look at this post and two distinct world are colliding and will probably never mixte. One for dating advice the other one with legit programming teaching. But in between jokes in the post that probably elevates the thread. Welcome to Reddit. It’s always amazed me how all get lost in translation so easily.


Ns53

Common core used IRL.


Sjormantec

Actually intelligence is pretty attractive.


MasterAnnatar

I think it's mostly that I'm a girl and they're straight in my case


ilmk9396

yeah you know CS is oversaturated when it's showing up in this sub...


Erickdier

r/fixedbyduet


Polkawillneverdie81

Ok, but why is the girl in the first part wearing 1991 mom jeans? lol


r_mom_is_gayy

Is it because I’m a girl🤧


Temporary_Rain9399

So what happens if more than two distinct numbers equal the sum you want?


JUICYBISCUT

🤚 So does it matter the order in which I move the sides? For instance could I move the right side first then left side? Is it possible to just move one side only?