@Royce Liam Editorial by tunyash Reduce the Problem to a Basic Level Let's start out with an easier task. We want to understand how to count the number of xyyx subsequences existing in a string composed of the letters x and y. We define the following: is the number of xy subsequences ending at position in the string. Simply put, is the number of x's to the left of . is the number of yx subsequences located at indices . To calculate , we must first calculate , which is the number of yx subsequences starting at index of . We calculate in the same way as we did , and we can now see that: We then calculate using the recurrence . This means the answer to our reduced problem is: Apply the Solution Above to the Challenge How can we apply what we learned above to the initial problem? Let's fix letters and and look for all subsequences. This is the same problem we just solved for , where is with all letters except for and deleted. Now we have a solution with complexity. But what if we will find in time? Then every letter of will be used in of our generated strings, resulting in a time complexity of But how can we generate quickly? For each letter, precalculate all indices such that . This can be done in time. Then, when we've fixed and , is where is the merged arrays and .
@@Acmecaboose I answer it for you with another quote "would I rather have people love me or fear me? I would rather people fear how much they love me"- Michael Scott
@@DeadlyBlade21 it's kinda hard to explain, it's funny because of Kelly and Ryan's previous relationship. And the way Kelly deliveres that line is also pretty hilarious
@@DeadlyBlade21 okay this is butchering the joke but, basically he asked that to shut her up because she dissed him. Which anyone else without a question to ask would have, but she goes ahead and asks that anyways. And her question could mean how dare you make a mess but refers more to their past relationship Ok bye
"We had a foreign exchange student living with us when I was young. And we called him my brother.. Then he went home to what is now Yugoslavia, taking all of my blue jeans with him. And I had to spend the entire winter in shorts. That is what Ryan is like. A fake brother who steals your blue jeans" - Michael Scott after realizing that Ryan is a bad friend
I gotta say, Stanley is by far the worst character in the show. And that moment was the pinnacle of his garbage character. He's easily manipulated and yells with his sassy blackness at Ryan about something he's completely innocent of. It's embarrassing to black people and it's embarrassing to writers. It's the worst.
@@kubush I don't believe this is true! Stanley isn't just "the black guy" he is a very nihilistic person and protective over the people he loves! I would yell at someone too if I believed they were trying to groom my child. I personally didn't see as "yelling with his sassy blackness", he's a well written and funny character, so it doesn't feel out of place or a stereotype. But we all do have our opinions I suppose and I respect yours.
i love how kelly and stanley's daughter like ryan but the white girls he hits on from erin to pam to even karen sorta don't...is that bj's way of telling us he liked the sistas growing up or cause he and mindy started dating or what?
Actually ya... But it can't be used as a regular social media app ..bt will be really useful for emergency communications or something like that. But Ryans eye was to get billions from wuphe 😂😂 ..if he marketed well then he would have got atleast 50-100k USD ig
Ryan tells a story about his cousin "Mufasa" getting trampled to death by wildebeest, and Michael is totally unaware that he is just telling the plot of The Lion King
One of my favorite scenes with ryan. Ryan: Kelly do you have any questions? Kelly: I have alot of questions. 1st off. How dare you? Lolol and several others! Love the office!
I had to really suspend disbelief that despite the mountain of embarrassment it would dump on him (in addition to the already existing humiliation of what happened with his arrest and termination) to go back to temp after his rise to VP at the very same branch he made so many enemies in when he could have had a completely fresh start literally *anywhere* else.
1:23 It's moments and laughs like this that makes me easily forget Michael Scott is a played role. I have moments with my best friends that have that point of authenticity. Love this so much.
I actually really did like Ryan at the beginning (before getting into corporate). Then he just became kind of a totally different character and more and more flanderized as the series continued. I wonder what kind of character Ryan would have become if he followed his initial path of just a chill guy having to start a job in a confusing office with a crazy manchild boss.
You can see it that way, but I feel like Ryan already had all those desires inside of him but just didn't let them out. He just started working so was still figuring out how to get on top but deep inside he probably already wanted power girls and money
Nah, he's a psychopath. It's just that people don't really know how to recognize one properly. All the traits are there, no empathy, no real connection to anyone, a destroyer, power driven... and isn't as good as he tries to sell he is.
I like how Stanley gets a concerned look the first time Ryan snaps at Michael. I like to think he gained a bit of respect for Michael after he himself snapped at him, and knows that you can't treat the boss that way, even if Ryan's technically the boss now.
“I want guidance, I want leadership but don’t just boss me around. Like lead me when i’m in the mood to be led” now i’m actually an employee, so i relate so heavily to this quote 🤣🤣🤣
I would have thought Oscar would have been blowing the whistle as soon as Ryan started talking about double entry of sales. That should be a red flag for an accountant.
What I find brilliant about this is that the writers actually created a crappy business idea (WUPHF) for the show just to let it sink like it was supposed to
Ryan: slowly loses his mind
Stanley: Boy I will help you find it!
@Royce Liam bruh wut?
have you lost your mind? coz Stanley will help you find it
Read it in Stanley’s voice 😂
😂😂😂😂
@@rhythm5080 hahaha
@Royce Liam Editorial by tunyash
Reduce the Problem to a Basic Level
Let's start out with an easier task. We want to understand how to count the number of xyyx subsequences existing in a string composed of the letters x and y.
We define the following:
is the number of xy subsequences ending at position in the string. Simply put, is the number of x's to the left of .
is the number of yx subsequences located at indices . To calculate , we must first calculate , which is the number of yx subsequences starting at index of . We calculate in the same way as we did , and we can now see that:
We then calculate using the recurrence .
This means the answer to our reduced problem is:
Apply the Solution Above to the Challenge
How can we apply what we learned above to the initial problem? Let's fix letters and and look for all subsequences. This is the same problem we just solved for , where is with all letters except for and deleted.
Now we have a solution with complexity. But what if we will find in time? Then every letter of will be used in of our generated strings, resulting in a time complexity of
But how can we generate quickly?
For each letter, precalculate all indices such that . This can be done in time.
Then, when we've fixed and , is where is the merged arrays and .
"I don't care if Ryan murdered his whole family he's like a son to me"- Michael Scott
I’ll never understand that obsession with him. It was...creepy.
@@Acmecaboose I answer it for you with another quote "would I rather have people love me or fear me? I would rather people fear how much they love me"- Michael Scott
Omg I just realised the implications of that joke. That's so good, I can't believe it took me so long to notice.
@@HOTD108_ I know me too, idk why it took me so long till I actually thought about the wording
@@HOTD108_ Yeah, it took me a while too lol, after reading it so many times around the internet I finally got it. 😂
This guy....had the craziest arc ever lmao
I don't know if I'd call it an arc. More like a roller coaster loop the loop that never ends, lol.
🤣😂🤣😂
You know who had an arc? Noah...
@@fabpete and Robin Hood
More like a circle where he ends up right back where he started. With Kelly lol
Ryan: "I don't need a judge to tell me to keep my community clean."
Jim: But he did, right?....
*pulls out notebook*
Jim and I have never been friends.
@@ryanhoward2755 mhm
🤨✏️🗒
@DEEJMASTER 333 Alright.
I have a lot of questions - number one: How dare you?
*slow clap*
Can someone pls explain this joke? Ive never understood it lol
@@DeadlyBlade21 It's something Kelly says to Ryan.
@@DeadlyBlade21 it's kinda hard to explain, it's funny because of Kelly and Ryan's previous relationship. And the way Kelly deliveres that line is also pretty hilarious
@@DeadlyBlade21 okay this is butchering the joke but, basically he asked that to shut her up because she dissed him. Which anyone else without a question to ask would have, but she goes ahead and asks that anyways. And her question could mean how dare you make a mess but refers more to their past relationship
Ok bye
Words of wisdom “lead me when I’m in the mood to be led” 😂😂😂
led*
Facts tho.
@MrShoter led*
Isn’t that kind of the millennial mantra?
I should probably be ashamed but I kind of relate
It was a roller-coaster ride with him
I am a roller coaster
@@creedbratton490 More like single roller on the coast.
Yep
Ryan: "I don't need a judge to tell me to keep my community clean."
Jim: But he did, right?....
That’s what she said
We need a compilation of Angela saying "the senator"
Lmao yes 😂
Yes. Definitely yes.
The STATE senator
and oscar and kevin harshing her about it
And then Oscar saying state senator
Hey I’m a Millennial too
Yes indeed,Great Bratton !
You’re 30! Well, in November you’ll be 30.
@@c.harlotte it is November
Is it this November or the next? Looks like it keeps moving every year
It’s been moving for the last 45 years
I started the show saying ryan is the only character that makes sense but then i was like hell nawww
Oscar?
@@rahuljoshirahulmagic oscar has a condition
@@kaituminaro6648 you know the answer creed
@@jonnythrox5064 he’s gay.
Me too!
"Happy birthday to Sally, lane 27" What an enthusiasm in his voice.
The sad, faint birthday song in the background as Micheal is talking is the cherry on top of that whole scene
Just as hot as Jan but in a different way
Fire-d guy
Too soon
I read that in the lawyers voice
@@aeriontargaryen1162 lol me too
Yeeees that’s one the best parts of the whole series
Joe McCarthy, Richard Nixon, Studebaker, Television, North Korea, South Korea, Marylin Monroe! Ryan started the fire!
Ermagerd yes
Joe Mantegna, Ian McKellen,
I have to buy a new toaster,
This is awesome, you’re so stupid,
Jumping up and down
It was always burning since the worlds been turning
@@CheukNamSiu I'm betting you have no idea what you're doing, but, to be clear, you're doing it really, really well.
Stop
2:28 Stanley was actually impressed
DID I STUTTER
He probably enjoys whenever someone stops Michael from sing like a fool
hey thought he fianded his mind
Remember that Stanley helped Ryan find his mind after he lost it
I always thought he just looked amused lol. Like "This kid think he's tough now"
"We had a foreign exchange student living with us when I was young. And we called him my brother.. Then he went home to what is now Yugoslavia, taking all of my blue jeans with him. And I had to spend the entire winter in shorts. That is what Ryan is like. A fake brother who steals your blue jeans" - Michael Scott after realizing that Ryan is a bad friend
blue jeans*
@@jenm1 what did I say mama?
@@kamariweaver1536 "who steals your shorts"
@@jenm1 ohh right I see LOL, I will edit thanks baby girl
It’s not like Michael was a good friend to Ryan either.
"Lead me...when I'm in the mood to be led"
Literally me
Underrated quote
Sounds like every female ever😅😅
Michael’s love for Ryan is hilarious every time
Jim keeps looking at me, kind of a lot lately... But its nothing compared to how Michael looks at me... *michael peeking through the window blinds*
“I don’t get the big fuss here, I like the site.”
Creed strikes again
Love him sm
Isnt that implying he's one of the predators? Lol
@@cacahuate381 yeah that’s the joke
“Imagine a company that has no memory of your past misconduct because they have no files!”
-Michael Scott
I wish that was our government because then I could vote
Pretty sure Wayne Gretzky said that.
He started by saying “I don’t want to be the ‘something’ guy” and he was later called the “fire” guy. How the mighty fall, I suppose.
"fire....d guy"
He was never mighty in the first place.
@@ZenwaaKevin: hey "hire'd guy" *high fives*
Andy: “FIRE GUY FLOOWSOOHEOSHFHHHFHSHHSHHHH👋👋🙌🙌🙌👋🙌🔥🔥🔥🔥🔥”
Kevin: “Hey you weren’t here for that”
Andy: “Here for what”
Ryan looks like a completely different kind of person with every hairstyle and facial hairstyle he chooses. It's actually incredible wow
I love how they portrayed Jim as a Gen X guy and Ryan as a Millennial, while both of them are of the same age, same class in their school.
Haha, yeah they're both technically late Gen X
To be fair Novak looked younger without the beard. It works.
Actually ryan and jim younger gen x or oldest millenials
@@Kaan8937 they're right at the precipice. same with Pam
The actors are the same age but I don’t think the characters are
Ryan is some of the most brilliant satire on millennials I've seen, I mean "lead me when I'm in the mood to be lead" is such a good line.
I think his biggest problem (the problem all of us Millennials have) is that he never really processed 9/11.
Maybe that’s why he started the fire.
"I'd rather she be alone than with somebody, iS tHaT lOvE?"
Literally this generations logic lol
It’s excruciatingly true.
I tried to talk to Toby and be his friend but that is like trying to be friends with an evil snail
Toby kinda sus
Who let the lemonhead in
Evil snail, who will do sorcery and turn you into thighs
never gonna forget this
@@creedbratton490 Speakin like the kids nowadays ey Creed?
He’s such a ✨little old man boy✨
😂😂
He hurt my time, just like Michael
@@pamhalpert6546 Is that really how you feel?😢...
ISN'T HE THE GUY THAT STARTED THE FIRE?!?!?
YUP
FIRE...ED GUY
I hate everyone
@@ryanhoward2755 "How dare you." -Kelly K.
You weren't there for that
Stanley yelling at Ryan is probably the reason why he lost his mind later in the show
Hopefully Stanley can help him find it.
I gotta say, Stanley is by far the worst character in the show. And that moment was the pinnacle of his garbage character. He's easily manipulated and yells with his sassy blackness at Ryan about something he's completely innocent of. It's embarrassing to black people and it's embarrassing to writers. It's the worst.
Ryan's frightening experience in his life.
@@kubush I don't believe this is true! Stanley isn't just "the black guy" he is a very nihilistic person and protective over the people he loves! I would yell at someone too if I believed they were trying to groom my child.
I personally didn't see as "yelling with his sassy blackness", he's a well written and funny character, so it doesn't feel out of place or a stereotype.
But we all do have our opinions I suppose and I respect yours.
i love how kelly and stanley's daughter like ryan but the white girls he hits on from erin to pam to even karen sorta don't...is that bj's way of telling us he liked the sistas growing up or cause he and mindy started dating or what?
At this point this channel is just posting the same clips under a different title and I love it
They had us in the first half not gonna lie.
I really feel bad for his cousin mufasa. Anyone knows how his family is now?
🤣😂😂😂😂😂
I heard his son is doing great
He's probably in Argentina now
I'm waiting for the person who doesn't get the joke..
Idiot, that was a movie.
Before: FIRE GUY
After: FIRE-D GUY
Let's be honest...
WUPHF isn't a terrible idea. The worst part was that Ryan was behind it
Either you'd annoy everyone by using it, or you'd only use it once in a blue moon
How is not a bad idea?
Actually ya... But it can't be used as a regular social media app ..bt will be really useful for emergency communications or something like that.
But Ryans eye was to get billions from wuphe 😂😂 ..if he marketed well then he would have got atleast 50-100k USD ig
Tell that to Washington University Public Health Department
he shouldve listened to oscar and marketed it as an emergency message relaying service
No one:
Ryan: "How's my favorite branch doing?"
Everyone: *Awkward silence*
Ryan: "Alright!"
That did happen I was there
it’s true
When he started losing his mind, I always wondered why he didn't go to Stanley to help him find it.
“Fire-d guy!” I love it ❤️😂
Ahhhhhh HAha nervous laugh
I like how his personality changes so much but yet there is nothing he does that seems unRyan like.
You know Ryan is a millennial when he has to correct Pam on what crack technically is
you know he is a millennial when he chased after his phone
The “How dare you” from Kelly gets me every time 😂
4:15 they cut that scene off at the best part "I think I never really processed 9/11"
Me when a friend tells me he doesn't like The Office: I have a lot of questions. First of all how dare you?
Me after watching The Office after season 7..
It's stupid ,but it's my thing now
You have to treat me the same way you treated Jan.
Those words should never have come out of your mouth Ryan.
Ryan tells a story about his cousin "Mufasa" getting trampled to death by wildebeest, and Michael is totally unaware that he is just telling the plot of The Lion King
Yes...that was the entire point of that whole scene...
Thank you for literally just explaining the joke
Wait, really...for real!? I didn't catch that!
Wait a second... mufasa isn’t his cousin?!!
wow had no idea 😐😐
"If I had to, I could clean out my desk in 5 seconds and nobody would ever know I had been here....and I'd forget too."
Now THAT I can relate to.
"The Washington University Public Health Fund."
"W-U-P-H-F."
"Oh, God. They only want it for the initials."
Most people remember Ryan as the fire guy, I'll always remember him asking "how's my favorite branch doing?"
"lead me when I'm in the mood to be led" is my life motto
One of my favorite scenes with ryan.
Ryan: Kelly do you have any questions?
Kelly: I have alot of questions. 1st off. How dare you?
Lolol and several others! Love the office!
“I wanna be with my phone” might be the most relatable thing Ryan says in the entire show.
I had to really suspend disbelief that despite the mountain of embarrassment it would dump on him (in addition to the already existing humiliation of what happened with his arrest and termination) to go back to temp after his rise to VP at the very same branch he made so many enemies in when he could have had a completely fresh start literally *anywhere* else.
He had a criminal record though, so he cant have a fresh start
1:23 It's moments and laughs like this that makes me easily forget Michael Scott is a played role. I have moments with my best friends that have that point of authenticity. Love this so much.
“Everyone deserves a second second chance” - this has to be a motivational quote.
The writing on the show and character development is absolute perfection
The quote I live by:
“Lead me-lead me when I’m in the mood to be lead.”- Ryan Howard
I’m convinced you can watch the whole series on this channel.
I actually really did like Ryan at the beginning (before getting into corporate). Then he just became kind of a totally different character and more and more flanderized as the series continued. I wonder what kind of character Ryan would have become if he followed his initial path of just a chill guy having to start a job in a confusing office with a crazy manchild boss.
You can see it that way, but I feel like Ryan already had all those desires inside of him but just didn't let them out. He just started working so was still figuring out how to get on top but deep inside he probably already wanted power girls and money
Ryan is honestly such an underrated character. He has some of the funniest and most quotable lines after Michael.
Glad I’m not the only one who thinks this!
Dwight's face when Ryan returns as a receptionist 🤣🤣
No matter what yall say about Ryan, he was a cool dude. Sometimes a guys gotta ride the bull. Later skater.
Nice one !👌😂
Dude, your breath have a old man smell..
Nah, he's a psychopath. It's just that people don't really know how to recognize one properly. All the traits are there, no empathy, no real connection to anyone, a destroyer, power driven... and isn't as good as he tries to sell he is.
@@anamuraroexactly! No one seems to grab that 😅
*“I’d rather her be alone, than with somebody. Is that love?”* ....sure.
Hey last time I was this early Pam was still allowed at Chili's
"Our little old man-boy. Bearded man-boy." Kevin
"Little Old Man Boy" is forever my favorite quote
Michael treats Ryan so well cause he is the child he always wanted
Ryan writing Jim in his notebook is my favorite gif ever.
"Hey c'mon guys. These are prime selling hours y'know?" - Vikram
The little old beard man boy.
“what line of work you in Bob?”
~ Ryan Howard
I like how Stanley gets a concerned look the first time Ryan snaps at Michael. I like to think he gained a bit of respect for Michael after he himself snapped at him, and knows that you can't treat the boss that way, even if Ryan's technically the boss now.
Ryan snapped for good reason tho
Well Michael was the one being inappropriate
Ryan's hair across the show has more colours than an RGB gaming keyboard.
ryan is honestly the most relatable character
in some ways
“I want guidance, I want leadership but don’t just boss me around. Like lead me when i’m in the mood to be led”
now i’m actually an employee, so i relate so heavily to this quote 🤣🤣🤣
“You get paid by the year at the Bowling Alley?” Love Pam’s shade thrown at Ryan!!😂😂😂
I would have thought Oscar would have been blowing the whistle as soon as Ryan started talking about double entry of sales. That should be a red flag for an accountant.
Oh big strong man, fancy new whatever! - favorite line
What I find brilliant about this is that the writers actually created a crappy business idea (WUPHF) for the show just to let it sink like it was supposed to
Funny, I suppose you just need a website, no real product and like 1 employee
“I’m a middle class fraud “. 😂😂
“Lead me when I’m IN THE MOOD to be lead”
That is the millennial thing Ryan said on the entire show
Ok boomer
@@HOTD108_ don’t go burnin down a city because u think ur changing some false injustice
More like gen z 😂
7:35 Poor Sally on lane 27 got the flattest “happy birthday”
"Maybe we weren't right together but it's weird, i'd rather she be alone than with somebody, is that love?" So wholesome, so true
Ryan from top to bottom, that´s what Michael said.
My favorite part: “Is it possible that he’s bowling? I mean you know him better than I do.”
1:44 lolol Andy trying to join the conversation and Kevin telling him he wasn't here for that
At 3:10 Pam literally said *BoY HaS He LoSt HiS mInD aGaIn* with her eyes😂😂😂
1:09 pams face right here always gets me😂
Hello, Mr. Sonny Crockett. *I'M TUBBS*
Some characters have arcs. Ryan had a roller coaster.
2:01 "Okay Little Old Man Boy"- Kevin
another year to remind you that
🎶ryan🎶started🎶the🎶fire🎶
Ryan's that one kid who is so caught into his phone that he ignores his parents
1:50 "you weren’t here for that" that’s peak humor and i love it
I only just noticed creed’s reaction at 10:37😅😅
6:29 Every time someone says he’s a perfectionist immediately this line comes to my mind😂
me heading home from school back to the
cool-shaped stick I found this morning: 4:26
Let’s all remember that at one time Ryan was just like us.
Ryan is the perfect example of "You cannot ask for respect, you have to earn it"
Stanley looks so proud at 2:27 lol
He’s proud Ryan finally found his mind 😂
Is no one fed up of the "ryan started the fire" comments?
No
Ryan is
Actually, Ryan started the fire
I am
That's exactly what ryan would say hmmm
When he said "I want to be with my phone", I felt that
When he told Kelly’s parents “I’m saving up to travel and to buy an Xbox” - I felt that.
_“I’M NOT SAYING I HAD A METEORIC RISE, BUT I DID.”_
sure bud
temp --> vp --> bowling employee --> temp; what a meteoric rise!!