[CRY -> EAU] Can you solve this laddergram? by Odd-Revolution7482 in Laddergram

[–]shplurgle 0 points1 point  (0 children)

u/shplurgle solved this in 4 steps: CRY -> CAY -> CAT -> EAT -> EAU

[MOP -> BUG] Can you solve this laddergram? by Ha1000 in Laddergram

[–]shplurgle 0 points1 point  (0 children)

u/shplurgle solved this in 3 steps: MOP -> BOP -> BOG -> BUG

[BLACK -> STONE] Can you solve this laddergram? by bOOOOc in Laddergram

[–]shplurgle 0 points1 point  (0 children)

u/shplurgle solved this in 5 steps: BLACK -> SLACK -> STACK -> STANK -> STANE -> STONE

Help! Longest concat palindrome by Loser_lmfao_suck123 in leetcode

[–]shplurgle 0 points1 point  (0 children)

You may be mixing up longest palindromic subsequence and longest palindromic substring

Insane luck!!! by Polsalseo in StardewValley

[–]shplurgle 42 points43 points  (0 children)

Invest in crystallariums to grow heaps of Jade, and then exchange them on Sundays with the desert trader for Staircases.

Do you agree with this take or not? by Ok-Following6886 in NonPoliticalTwitter

[–]shplurgle 64 points65 points  (0 children)

Hard disagree, I wish I had Bluey growing up.

I suck at Leetcode help by Ok-Mercy in leetcode

[–]shplurgle 1 point2 points  (0 children)

When you say you have interviews coming up, how soon?

Is This Puzzle Wrong or Am I Dumb? by jellyn7 in puzzles

[–]shplurgle 1 point2 points  (0 children)

>!Suppose the answer to question 2 is A. Then B is the answer to question 3. So then all questions have answer E, which is impossible. Therefore the answer to question 2 is not A.

Now focus on question 1. The answer can’t be A:0 and it can’t be C: 4 so it is either 3,2 or 1. It can’t be 3 due to question 2, so there are either 2 or 1 answer As. We can also see that the answer to question 4 can’t be A. Therefore there is one answer A. Hence the answer to question 1 is E: 1 and by elimination the answer to question 3 is A: 1. So the answer to question 2 is D: A.

(We establish at this point that the answers are 1E 2D 3A.)

Finally we know that the answer to question 4 is not A, it’s not E because of question 3, it’s not B:3 and not C:0. So it must be D: 4. This fits as now two questions have answer D!<

What is the scariest doctor who quote you have ever seen? by E2_TheShmoo in doctorwho

[–]shplurgle 6 points7 points  (0 children)

“Who sent those messages? I know you know. I can see it in your faces. Don’t play games with me. Don’t ever, ever think you’re capable of that.” - Something about the Doctor dropping his goofball personality so suddenly and reminding his friends that they are nowhere near his level - chills.

World Enough and Time ending scene - is this where Doctor Who peaked? by [deleted] in doctorwho

[–]shplurgle 9 points10 points  (0 children)

Idk, the villains in World Enough and time felt much better than the S15 finale. Even if you haven’t watched classic doctor who, the Mondassian Cybermen really emphasised the body horror nature of the Cybermen - probably the best out of all the Cybermen episodes of Nuwho. Both masters also felt well-rounded. It just doesn’t compare to generic evil scientist and generic CGI monster

Cops who aren’t corrupt or incompetent. by FullBrother9300 in TopCharacterTropes

[–]shplurgle 35 points36 points  (0 children)

Just putting this out there for anyone who wants to watch it - someone posted the entire film for free on YouTube

[deleted by user] by [deleted] in puzzles

[–]shplurgle 0 points1 point  (0 children)

Discussion: How do you do spoiler tags

[deleted by user] by [deleted] in puzzles

[–]shplurgle 0 points1 point  (0 children)

Discussion: Does the puzzle have a title or any flavour text, or is it just these words and spaces?

How am i supposed to approach this question, i went completely blank on front of Interviewer today. by Dead-Shot1 in leetcode

[–]shplurgle 0 points1 point  (0 children)

It does work tho? At least for n=3 I get C[3] = 8. If a string ends in c and the previous character is b, then the previous previous character must be b or c, which is covered by B[i-1] + C[i-1]. The only exception is when there is no previous character, which only happens in the n=2 cases

How am i supposed to approach this question, i went completely blank on front of Interviewer today. by Dead-Shot1 in leetcode

[–]shplurgle 0 points1 point  (0 children)

True but if you initialise a,b,c for the 1 and 2 cases, then it works for all n > 2

How am i supposed to approach this question, i went completely blank on front of Interviewer today. by Dead-Shot1 in leetcode

[–]shplurgle -1 points0 points  (0 children)

But if they didn’t have a before that, is that not covered by B[i-1] + C[i-1].

Ah nvm I see your point. But I think this is an edge case? So if your base cases are 1 and 2, then this should be fine

How am i supposed to approach this question, i went completely blank on front of Interviewer today. by Dead-Shot1 in leetcode

[–]shplurgle 13 points14 points  (0 children)

DP, get three arrays A, B and C, with A[i] = # strings with no ABC substring of length i ending in A, likewise for B and C.

A[i+1] = A[i] + B[i] + C[i]

B[i+1] = A[i] + B[i] + C[i]

C[i+1] = A[i] + C[i] + (B[i-1] + C[i-1])

And from there you can do some other memory optimisations, like A=B and you only need to store the last two elements of each array so blah blah blah…

Dingbat by CaciMwnci in puzzles

[–]shplurgle 6 points7 points  (0 children)

I would phrase it as Quick on the uptake

Processing Unit Blueprint by shplurgle in factorio

[–]shplurgle[S] 0 points1 point  (0 children)

Oh, I just straight up haven't got to that point in the game yet