She owns the street this one

2022.01.18 18:35 littlemissfordy She owns the street this one

submitted by littlemissfordy to karen [link] [comments]


2022.01.18 18:35 SM_FM Can somebody please help me where I'm going wrong with this problem?

So I know there are much simpler ways to solve this problem, but I'm trying to do it without higher order functions and in vanilla Javascript. The problem is the following:

A consecutive-run is a list of adjacent, consecutive integers. This list can be either increasing or decreasing. Create a function that takes an array of numbers and returns the length of the longest consecutive-run.

Examples:
longestRun([1, 2, 3, 10, 11, 15]) ➞ 3 // Longest consecutive-run: [1, 2, 3]. longestRun([5, 4, 2, 1]) ➞ 2 // Longest consecutive-run: [5, 4] and [2, 1]. longestRun([3, 5, 7, 10, 15]) ➞ 1 // No consecutive runs, so we return 1.
My function below passed these test cases, but when I went to submit it, it failed a built in test case for longestRun([1, 2, 3, 5, 6, 7, 8, 9]).
After some consoling, I found out that when arr[start] became 5, it pushed 5 to run array even though it should have started the while loop that would have gone until the end of the array. The weird thing is after it pushed 5 to run and 6 became the value at start, it ran the while loop properly from there.
Any help is greatly appreciated!!! Function below:
function longestRun(arr){ //create a run arr let run = []; let start = 0; let next = 1; let end = 2; //while start < arr length while (start < arr.length){ //if value at next is value at start + 1 AND value at end is NOT value at next + 1 if (arr[next] - arr[start] === 1 && arr[end] - arr[next] !== 1){ //push value at start and value at next to run arr run.push([arr[start], arr[next]]); start = end; next = end + 1; end = end + 2; }
//if value at start minus 1 is equal to value at next AND value at next - 1 is NOT equal to value at end if (arr[start] - arr[next] === 1 && arr[end] - arr[next] !== 1){ //push value at start and value at next to run arr run.push([arr[start], arr[next]]); start = end; next = end + 1; end = end + 2; } //if value at next is = to value at start + 1 AND value at end is = to value at next + 1 if (arr[next] - arr[start] === 1 && arr[end] - arr[next] === 1){ //while end = next + 1 while (arr[end] - arr[next] === 1){ next = end; end = end + 1; } //slice arr from start to end let slice = arr.slice(start, end); //push arr to run arr run.push(slice); start = end; next = end + 1; end = end + 2; } //if value at start minus 1 = value at next AND value at next - 1 = value at end if (arr[start] - arr[next] === 1 && arr[next] - arr[end] === 1){ //while next - 1 = end while (arr[next] - arr[end] === 1){ next = end; end = end + 1; } //slice arr from start to end let sliced = arr.slice(start, end); //push arr to run arr run.push(sliced); start = end; next = end + 1; end = end + 2; } else { //push current number in an arr to run arr run.push([arr[start]]); start = next; next = end; end = end + 1; } } //set longest var = first element in run arr let longest = run[0].length; //iterate over run arr for (let i = 0; i < run.length; i++){ //if length of current arr > longest var if (run[i].length > longest){ //longest var = current arr longest = run[i].length; } } return longest; }
submitted by SM_FM to learnjavascript [link] [comments]


2022.01.18 18:35 Novel_Chair_0303 🎁$300k giveaway + 1 NFT & drop address⬇️

🎁$300k giveaway + 1 NFT & drop address⬇️ submitted by Novel_Chair_0303 to opensea [link] [comments]


2022.01.18 18:35 Streetvan1980 WTF!!! I just lost everything in my game!!!

What the hell? I just spent the last like 4 hours moving things to a new home. I’m almost done and on one of my last trips. I get back and nothing is there. The island I was using is reset like I was never there. All my stuff is gone!! My oil rig everything! I’ve been playing like 5 hours a day for a while. It’s all gone! Is there a way to access old saves?
If not i guess I’m done with this game.
submitted by Streetvan1980 to Craftopia_ [link] [comments]


2022.01.18 18:35 browneyed_gal has anyone seen the pink blossom/pink lychee/date brown scuba half zips or the pecan tan scuba full zip come back in stock? I’m having major FOMO since they sold out before I even knew they dropped😩

submitted by browneyed_gal to lululemon [link] [comments]


2022.01.18 18:35 TunesMedia Market Wrap: Cryptocurrencies Decline with Equities, Traders Remain Cautious

Market Wrap: Cryptocurrencies Decline with Equities, Traders Remain Cautious submitted by TunesMedia to maxbit [link] [comments]


2022.01.18 18:35 Joey_hicks What was your unpopular choice across seasons 1 to 4 and why

submitted by Joey_hicks to TheWalkingDeadGame [link] [comments]


2022.01.18 18:35 ttimelady Do you get deeply affected by fictional stories?

Do you ever get overwhelmed by how much you're affected by fictional stories? I don't feel that way about every story that I watch or read but lately I've been watching a few shows that have caused a great impact on me emotionally and I'm starting to feel exhausted tbh.
I just finished watching a show yesterday and, while it had a happy ending, there was A LOT of sadness that the characters had to endure to get there. And I guess I would be feeling worse if the ending was sad but...I don't really feel good? The finale was over a hour long and I cried like a baby through the most of it. Now I feel emotionally drained. I guess I'll be exclusively watching sitcoms for the rest of the month (even tho I sometimes cry at them too lol).
Does anyone else goes through something similar?
submitted by ttimelady to hsp [link] [comments]


2022.01.18 18:35 thetrix0r audio service not responding

hi,
idk whats going on but my audio is not working anymore. I've tried all common solutions and the troubleshooting.
but everytime it says audio service not responding. I tried to solve a problem with the audio not working everytime I restart or start my laptop. So i changed sth in the services to local system user.
it only happened after upgrading to windows 11.
Any suggestions?
submitted by thetrix0r to pcmasterrace [link] [comments]


2022.01.18 18:35 GreenNapster My Squishy Little Dumplings by WowWee Interactive Doll (Dot Blue) $5.95 + Free Store Pickup at Target or FS on $35+ or FS w/ Prime or $25+ [Deal Price: $5.95]

My Squishy Little Dumplings by WowWee Interactive Doll (Dot Blue) $5.95 + Free Store Pickup at Target or FS on $35+ or FS w/ Prime or $25+ [Deal Price: $5.95] submitted by GreenNapster to RedditShoppingDeals [link] [comments]


2022.01.18 18:35 BroMandi [Walmart] GROHE Gloucester 8 in. Widespread 2-Handle Bathroom Faucet 1.2 GPM in Brushed Nickel, $25.23, 4 in Gloucester centerset, chrome, $25.88, FS for Walmart + or $35+ [Deal Price: $25.23]

[Walmart] GROHE Gloucester 8 in. Widespread 2-Handle Bathroom Faucet 1.2 GPM in Brushed Nickel, $25.23, 4 in Gloucester centerset, chrome, $25.88, FS for Walmart + or $35+ [Deal Price: $25.23] submitted by BroMandi to ShoppingDealsOnline [link] [comments]


2022.01.18 18:35 MaryElizabeth4225 Liability Insurance Behavioural Therapist

Hey everyone! I will be starting a new job as a behavioural therapist and need to get liability insurance as part of my contract. I was recommended to get it from abai but I am not a member. I was looking for recommendations from where to get insurance and if it has to be specific to my area of work.
Thank you!
submitted by MaryElizabeth4225 to askTO [link] [comments]


2022.01.18 18:35 classicclazy wts lf runes and or keys. also looking for eth 4os thresher

wts lf runes and or keys. also looking for eth 4os thresher submitted by classicclazy to DiabloPSN [link] [comments]


2022.01.18 18:35 M_artial Vous vous souvenez du grand collisionneur de lardons? Ben en poursuivant mes études de physicien (c'est faux), j'ai créé l'étron Volt, pour quantifier l'énergie consommée à nous déranger de ces maudits anglois

Vous vous souvenez du grand collisionneur de lardons? Ben en poursuivant mes études de physicien (c'est faux), j'ai créé l'étron Volt, pour quantifier l'énergie consommée à nous déranger de ces maudits anglois submitted by M_artial to rance [link] [comments]


2022.01.18 18:35 crytoloover Tribe PRICE LATEST UPDATE IN COINBASE APP | JANUARY 14, 2022 Gracia Muriot Channel #tribe

Tribe PRICE LATEST UPDATE IN COINBASE APP | JANUARY 14, 2022 Gracia Muriot Channel #tribe submitted by crytoloover to coinmarketbag [link] [comments]


2022.01.18 18:35 CastleArchon Review: Clavius

Review: Clavius submitted by CastleArchon to hexandcounter [link] [comments]


2022.01.18 18:35 AverageAntique3160 Each day I'm getting closer

I have everything planned out... its my 18th soon and idk if I want to see it, I have failed at so much, mainly relationships, it's been 3 years since I started going downhill, so many pehave come and gone, it hurts each day, I just want to end it, people tell me I shouldn't but why? Someone tells me to give it one last shot, I give it a go and I fail ending up worse than before, 3 years of built up emotions I haven't shown, 17 years of being a dumbass and being the odd one out, I'm driving and sometimes I just want to drive off into a tree or something, I sometimes want to use knives to cut my throat open but I don't want pain, I want relief. The relief that the world has 1 less person and don't tell me otherwise I have acted like a sociopath before and hurt plenty of people
submitted by AverageAntique3160 to helpme [link] [comments]


2022.01.18 18:35 TunesMedia Ethereum Losing NFT Crown to Solana

Ethereum Losing NFT Crown to Solana submitted by TunesMedia to maxbit [link] [comments]


2022.01.18 18:35 Party-Cat2586 Need gifts for xp 8705 0120 0891

Looking for new friends to send gifts for xp, will open everything tomorrow
submitted by Party-Cat2586 to PokemonGoFriends [link] [comments]


2022.01.18 18:35 Loveasiandoll Looking for sugar mommy can offering me weekly. I will make you excited every seconds.

submitted by Loveasiandoll to SugarMommyClub [link] [comments]


2022.01.18 18:35 pmcg190 [Steelers Depot] Alualu returning for 13th NFL season

[Steelers Depot] Alualu returning for 13th NFL season submitted by pmcg190 to steelers [link] [comments]


2022.01.18 18:35 JazzySpook A review on “Jonny the Walrus”

A review on “Jonny the Walrus” submitted by JazzySpook to onejoke [link] [comments]


2022.01.18 18:35 FreakEasy_ Been Streaming For 30 days straight for 12 plus hours a day and I’m loving it (FreakEasy_ on twitch)

Been Streaming For 30 days straight for 12 plus hours a day and I’m loving it (FreakEasy_ on twitch) submitted by FreakEasy_ to Twitch_Startup [link] [comments]


2022.01.18 18:35 CheesecakeInitial Anyone else experience this with the new jerseys?

Anyone else experience this with the new jerseys? submitted by CheesecakeInitial to bengals [link] [comments]


2022.01.18 18:35 yuyaj When do classes show on HuskyCT?

I just swapped a couple of classes but does anyone have any idea when the course appears on HuskyCT? Should I email the professor for a link to the collaborate?
submitted by yuyaj to UCONN [link] [comments]


http://kruzhki-s-kartinkami.ru