Tumgik
#getting to the bridge sucks until you've done it a bunch
excludedmiddle · 2 years
Text
Leetcode Weekly 327
Link
I don't think this is the most annoyed I've been at the Leetcode problemsetters, but it's probably close.
1 - this one was fun because it gave me a chance to solve a problem in 1 line with a list comprehension :3
2 - The first thing that jumped out at me here was the use of ceil (instead of floor, which is the standard for integer division). This suggested to me that the solution would use a minheap with negative numbers, because if you multiply by negative 1, do a division operation, and multiply by negative 1 again, floor and ceil are inverted compared to if you just did the integer division normally.
Flip all the numbers, put them in a minheap, pull them out one by one, add them to the score, divide them, and put them back in the heap, until you've done your k operations.
3 - I got confused on this one at first because it feels like there are a lot of cases, but then I remembered there are only 26 English letters, so you can actually just brute force all <=26^2 possible swaps and check if the two words have the same number of distinct letters after each swap, so it ends up being O(26^3) or something.
4 - I fucking hate this problem. Conceptually there isn't very much to it - maintain three heaps, one for time events, one for queueing on the left side of the bridge, one for queueing on the right side of the bridge.
But the cases are so fucking intricate and there are so many stupid tiebreak rules, and I had to infer some aspects of how it worked from the examples because the written description was kind of faulty... it's just a huge fucking headache. If I made better design decisions at the start I think I could've gotten it, but instead I was stuck for the last half hour with a solution that worked perfectly on a bunch of tests but was off by 1 on a very large test. Hell.
Good first three problems but the last one felt like a waste of my time, and I think a lot of other people agreed. There was a codeforces legendary GM who took the contest and he got the first three problems in four minutes and didn't get the fourth.
The funny thing is, so few people got Q4 that I actually ended up top 500 anyway. Rating-wise, this competition was fine for me (I'll probably gain a little), it just sucked to do.
2 notes · View notes
boba-beom · 2 years
Text
ೃ⁀➷ 19:15 | choi soobin
Tumblr media Tumblr media Tumblr media Tumblr media
🝮 pairing: soobin x f!reader 🝮 genre: fluffy smut, non-idol!au 🝮 warning(s): not proofread, established relationships, reader has nipple piercings, soobin has an oral fixation, subtle sub!soobin, soobin is into boob sucking, heavy petting, soobin has a praise kink, pet names (mostly towards soobin), soobin calls reader 'mommy' once surprise, implied oral (f!receiving) 🝮 summary: you and soobin finally have spare time to rest together and he found out you recently got your nipples pierced — he's obsessed with them. 🝮 wc: 1.2k 🝮 an: this is a little different to what I'm used to but let me know how it is 😅
Tumblr media
You sighed as you laid your head into the pillow, thankful that your work approved of your four days off. It's been too long since you and Soobin were at the house at the same time and doing nothing. If anything, it's been just over two weeks of one of you leaving for work just as the other comes home. Soobin, however, has been busier than usual; prepping for the upcoming weeks after he recently got promoted. Thus, you thought it was the perfect idea to spend the next four days relaxing with your long-term boyfriend.
"Baby? Wanna join me?" You called out for Soobin, making yourself comfortable. You patted the comforter flat, making space for him to lay beside you, while you saw his tall figure appear through the doorway.
"You're looking extra cozy over there, hm?" The bed slightly dipped from the weight shifting closer towards you.
He rested his head on your shoulder, snuggling closer to the crook of your neck which he had called home. His arm wiggled under your torso, wrapping it around your sides and his hand settled on your clothed waist.
You can't remember the last time you and Soobin were this intimate. There was obviously a peck or two shared when you saw each other for a split second before you'd leave for work, or vice versa, but this was something the both of you had been craving for however long you've been busy.
You combed your fingers through his dark locks, playing around with the soft strands that were starting to feel nostalgic to you. "I've missed you." You whispered, resting the side of your chin on the crown of his head.
"I've still been sleeping beside you every night, you know." He chuckled lowly, and you could feel the way your chest and the bed slightly wobbled from doing so.
"I know, but I mean we haven't felt so relaxed like this for a while," your fingers trail from the tips of his bangs to trace the slope down the bridge of his nose, "and I just miss you."
If Soobin's learnt one thing from your four-and-a-half-year relationship, it's that he knew what you meant by the latter. It was quiet for a couple of seconds, and you were hoping he hadn't fallen asleep already. That was until you felt the pads of his fingers skim across your skin, from your shins, over your knees, up your thighs and siding under his sweater that you were wearing.
"Mmm, I miss you too." His hand continued to flatten out and caress up your torso and started to massage one of your boobs. His face was sporting some sort of confused expression when he felt something foreign in that delicate area. "Huh? What's this?"
His hand did not hesitate to pull the sweater up, bunching it above your chest, just beneath your neck. You heard him gasp similar to a little boy in his favourite toy store. Your boyfriend's index finger swirled over the metal balls either side of your sensitive bud before lightly rolling it between his thumb and forefinger, with you letting out a light sigh.
"When did you get both of these done?? Is this one of the things you did when I hardly saw you?" Soobin's voice was laced in fascination and still in awe as he turned his body so he was laying on his front, watching the way his eyes were feasting on the view in front of him.
You continued to stroke his hair, pushing his bangs to the side so you could see his eyes. "I only just got them done a few days ago, actually. It's healing up pretty well, I'm just not as sensitive as I used to be though."
Again, he went quiet for a few seconds, giving you the urge to know what was going on inside his head, all while his fingers were still subconsciously playing with one bud to the other. He could feel his mouth salivating just from the sight and he didn't hold back—
"Can I put it in my mouth?"
Your brows raised from his question, though you weren't surprised in the slightest. Soobin's only ever littered your chest with hickeys or sloppy kisses on the mounds of your boobs, but to suck them and just out of comfort and relaxation? It was going to be hard to turn down.
"Is that what my baby wants?" You cooed by his ear, leaning forward to kiss his forehead.
He nodded almost immediately, impatient to wrap his lips around the sterling silver piercings. Again, you brushed his bangs out of his face, letting the palm of your hand cradle the back of his head to bring him closer to your nipple.
This was one of Soobin's guilty pleasures. He's always thought about casually sucking on your boobs especially after he had told you that he likes having something in his mouth whenever you have sex. Be it your tongue playing around the front of his teeth as he sucks on it, his lips constantly attached to the soft surface of your neck before the purple and maroon hues bloom, or your fingers in his mouth with his tongue swirling over and around them while he'd buck his hips into yours.
His hand started caressing the underside of your boob furthest away from him, until he started lightly massaging it and palming over your accessorised bud.
You watched him carefully stick out his pink, wet muscle from between his lips, anticipating the contact between the latter and your skin. His licks were gentle against the bud, taking his time flicking it with the tip of his tongue, but avoiding to overdo it on the piercing. You could tell he was being careful, though you wanted more.
"You're such a good boy for me, baby." He groaned from your soft praise. "You think you can be even better and suck on it?"
Soobin felt himself twitch in his sweats, and as appealing as rubbing himself against the bed sounds, he wanted to make you his priority.
It took him no longer than a fraction of a second to lean his face in even closer, enclosing your nipple and the new piercing. His sucks were short, and light, letting go with a gentle pop each time. Your hands continued to card through his now slightly dishevelled hair, letting out satisfied hums to indicate how well he was doing.
Your lover, on the other hand, had his eyes closed. Concentrating on the contrast between the two cool, tiny metal balls on the warmth of his tongue. He continued humming along with you creating an impromptu harmony, feeling the way your breath was starting to pick up from his the gentle sweeps of his flat tongue.
You had no idea when Soobin's hand moved away from your other boob, neglecting it just to proceed with light circles on your clothed core. The stimulation was getting to you, loving the way he was suckling on your nipple, and then slightly hovering over you to suckle on the other.
"Mmm, baby boy," your hand slid from the back of his head to rest at the back of his neck, "wanna be even better for me?"
He released your bud with a pop, softly blowing cool air to watch your nipple perk up before nodding his head and looking up at you.
"What do you want me to do?" His voice was sweet, lips slightly puffy from his previous ministrations. Yet his index and middle fingers continued their sinful actions on the nub, applying a little more pressure than before.
"I want you to put that mouth and tongue to good use, you think you can do that for me, sweet cheeks?" Your hand cupped his cheek and he moved his lips closer to your thumb and sucked the digit, adjusting his position so your core was nicely situated in front of his face.
He pushed your thighs far apart, circling your clit a few more times before you watched his head disappear between your legs for the rest of the evening.
"I'll be a really good boy for you, mommy."
Tumblr media
© boba-beom ; do not repost, copy, alter or translate in any way.
270 notes · View notes