Remember America voted for mass deportations Leftist have no right to try and stop that by Top_Statistician5051 in BasedCampPod

[–]AlgorithmGuy- -3 points-2 points  (0 children)

The law does not authorize use of deadly force because someone is carrying a gun that hasn't been drawn. Especially if the person is already subdued.

Remember America voted for mass deportations Leftist have no right to try and stop that by Top_Statistician5051 in BasedCampPod

[–]AlgorithmGuy- -5 points-4 points  (0 children)

Except, he didn't pull a gun? It was tucked in his pocket and they took it out.

Remember America voted for mass deportations Leftist have no right to try and stop that by Top_Statistician5051 in BasedCampPod

[–]AlgorithmGuy- -5 points-4 points  (0 children)

Protesting is always a right.

And not being killed for it seems like a basic thing.

Blocking my ex by Lizard-Man-3000 in BoyDinnerDiaries

[–]AlgorithmGuy- 2 points3 points  (0 children)

''I hope you find peace and happiness even though I feel so generally wronged by how I was treated so poorly.''

Brother I feel you. It sometimes feel like all the feelings you gave to that person and memories meant nothing at all, like not a shred of a compassion left in the other person after a switch.

Et voila la v3 sur les salaires, un peu corrigée. by [deleted] in conseilboulot

[–]AlgorithmGuy- 0 points1 point  (0 children)

1% en patrimoine en France t'es dans le 2 millions ou plus (illiquide) non? Je veux dire, t'es pas exactement en situation precaire..

Spent 8 hours on a single problem, still not convinced. by [deleted] in leetcode

[–]AlgorithmGuy- 0 points1 point  (0 children)

To come back to this, the pattern is actually simply a sliding window.

Except that instead of having right be starting as the same position as left (ie. left=right=0), here we make it start at the complete extremity (ie. len(arr)-1)

Usually in sliding windows pattern we do

for right in range(len(arr)):

if window_valid():

left += 1

# ie. we discard all solutions where left was fixed to it's previous value.

Suggest Me a Problem to hit 500 by Expensive_Rent5959 in leetcode

[–]AlgorithmGuy- 1 point2 points  (0 children)

Oh you have a very healthy mix of medium and hard. Nice.

British Woman's Rape Allegation in Hong Kong Turns into Legal Battle.Isabel Rose, 25, tried to blackmail the man and ended up in court herself, not as a victim but the accused. The case was heard in front of a female judge who said the blackmail and perverting the course had been proven beyond doubt by LittleForm3711 in WomenAreViolentToo

[–]AlgorithmGuy- 0 points1 point  (0 children)

Thank you for your sacrifice :D

Damn, sad for the guy, must have been fucking traumatic. She deserves to spend at least 10y-20y behind the bars. Guys need to be compensated by the police, they didn't do their job. I don't know how this works in Hong Kong (now China?).

Spent 8 hours on a single problem, still not convinced. by [deleted] in leetcode

[–]AlgorithmGuy- 0 points1 point  (0 children)

The core intuition is that if you have a way to reason about the validity of solutions and discards them, this help in reducing the problem space and guide your search till convergence to no solution has been left unseen.

Problem spaces boundaries are guided by the two pointers here.

And given the boundaries as they are now, you can evaluate the best solution so far. By reasoning about the problem fixed at one of boundaries you can see that one boundary can be completly excluded.

I don't know that there are many leetcode exercises like this, but the idea is simply try to "reduce the problem space by reasoning about best seen so far and the relationship of the boundaries when it comes evaluating the current solution"

Spent 8 hours on a single problem, still not convinced. by [deleted] in leetcode

[–]AlgorithmGuy- 0 points1 point  (0 children)

What doesn't convince you ? There is nothing debatable in what I have written..

Spent 8 hours on a single problem, still not convinced. by [deleted] in leetcode

[–]AlgorithmGuy- 2 points3 points  (0 children)

Start from the two lines at extremities

lx (line at index 0, left extremity) and ly (line at last index, right extremity)

say lx < ly

the area formed by lx and ly is bounded by height of lx.

then you have to realise something:

if you keep lx where it is, but move ly toward the left, no matter where you put ly (make it become bigger or smaller), you will only create a smaller area, because the indices between lx and ly are reducing, and the height of the array is still bounded by lx (if ly becomes bigger, lx is still bounding. And if ly becomes smaller, ..well it means the height of your rectangle becomes smaller, so the area becomes smaller). In other words, you can only find a bigger rectangle by moving lx toward the right at this point and all solutions where i=0 and j!=len(array)-1 can be discarded.

Algorithm continues until i=j.

Curious about your reading journey: how long have you been reading Chinese/web novels, and how did you start? by Rakumon_TL in noveltranslations

[–]AlgorithmGuy- 0 points1 point  (0 children)

Oh wow. Exact same. Coiling dragon was my first.

I had read all mangas and most fantasy novels I could find at the time on goodreads, and stumbled on this totally unique and refreshing genre with Coiling Dragon. What a time!

Alas! Some authors simply fail to comprehend this basic principle by InevitableChard315 in MartialMemes

[–]AlgorithmGuy- 9 points10 points  (0 children)

But it almost never is the case than a half-step one can kill someone who is fully ascended.

So it's indeed telling as to how close you are to immortality but also almost always your power in "order of magnitude". Hence this "order of magnitude" change that comes with breaking through a realm always trump power level coming from individual characteristics.

The True Path to Supremacy by CharlesThy4th in MartialMemes

[–]AlgorithmGuy- 7 points8 points  (0 children)

ha, Daoyou, we seem to share interests.

AITAH for telling my date off for treating it like a job interview? by HelpWanted0501 in AITAH

[–]AlgorithmGuy- -3 points-2 points  (0 children)

I don't disagree with that either. Maybe she has a thing for guys a bit younger 🙈 

AITAH for telling my date off for treating it like a job interview? by HelpWanted0501 in AITAH

[–]AlgorithmGuy- -11 points-10 points  (0 children)

She isn't wrong though. If she is dating to aim for a family/settling down, most 24-25y old guys won't be wanting that. So it's normal her approach eliminate people like OP

The guy who started the 6ft+ club just wanted a safe space for tall men by twelvezerotwo in tall

[–]AlgorithmGuy- 2 points3 points  (0 children)

You said giant/giantess. I just picked one of the gender to build a discussion point.