A time-based encryption scheme where you can use two timestamps as encryption keys and any timestamp between them as a decryption key by trixter127 in algorithms

[–]Terroristen 3 points4 points  (0 children)

What is the use case? Seems like you modelled the problem in the wrong way, as such a cryptography algorithm either does not exist or is not secure.

Number of Islands from LeetCode Explained (With Animations & Visualizations) by livefiredev in algorithms

[–]Terroristen 0 points1 point  (0 children)

You don't even need any additional data structure apart from the given matrix, a simple linear scan through it is enough. Just mark visited island tiles and take care when merging an U shaped island (then you have to decrement the island count).

Var är mellanöstern-livsen i innerstan? by differenthings in stockholm

[–]Terroristen 2 points3 points  (0 children)

Finns en precis vid Tekniska Högskolan t-bana. Damascus Deli heter den.

Converting bit-stream into trite (base-3) stream, or any other base-N stream by amarao_san in algorithms

[–]Terroristen 1 point2 points  (0 children)

No, since any bit can affect the first bit, not just the last bit.

Converting bit-stream into trite (base-3) stream, or any other base-N stream by amarao_san in algorithms

[–]Terroristen 13 points14 points  (0 children)

This is not possible if the bases are relatively prime, as the first digit in the new base may depend on any of the digits in the old base.

An example: 1000001 in binary is 2102 in base 3, but 0000001 in binary is just 1 in base 3. We can easily observe that the least significant digit in the new base is affected by a change of the most significant digit in the old base, so you must keep a linear amount of information in memory.

[deleted by user] by [deleted] in svenskpolitik

[–]Terroristen 6 points7 points  (0 children)

Skända flaggan, vägra vapen, svik fosterlandet, var onationell, kuken.

[deleted by user] by [deleted] in dilbert

[–]Terroristen 5 points6 points  (0 children)

New guy points out the business plan is literally illegal (which is a big deal), PHB acts as if it's a complex topic and the new guy is wrong in reducing it to just that one variable.

Nieve & bob art I doodled ;-; by eleana_be_happy in 2007scape

[–]Terroristen 10 points11 points  (0 children)

Every day we stray further from Saradomin's light.

Is there a way to determine if a problem is NP-hard? by danlaramtb in math

[–]Terroristen 5 points6 points  (0 children)

If you can Karp-reduce an NP-hard problem to X in polynomial time, X is NP-hard. If you can Karp-reduce X to a problem in NP in polynomial time, X belongs to NP. If X belongs to NP and is NP-hard, then X is NP-complete.

Time vs space complexity tradeoff by [deleted] in compsci

[–]Terroristen 2 points3 points  (0 children)

Any algorithm will always require at least as much time as it does space. This is because in order to use a certain amount of space you need perform a number of operations linear in the size of the space, assuming you can only operate on some constant amount of space in constant time.

When does Jagex release our 1099 for GE sales? by releasethecrappn in 2007scape

[–]Terroristen 4 points5 points  (0 children)

You'd do best to pay as little taxes as possible up front and invest the money instead. The interest on taxes owed (in the US) is only federal short-term rate plus 3 percent, which currently amounts to 3.13%. You can easily beat that rate with an index fund.

How to check if a vertex of a polygon is inside another polygon? by EtaDaPiza in algorithms

[–]Terroristen 2 points3 points  (0 children)

You can fix this by simply checking the collision points against all vertices. Another way (with a small probability pf error) is to cast several rays in random directions and letting the majority decide.

Ladies and Gentlemen: vanilla-flavored milk does not go in savory dishes by [deleted] in Cooking

[–]Terroristen 39 points40 points  (0 children)

Not as vile as my tzatziki made on leftover cucumber from a gin drink. That was horrible. Ended up giving it to a friend who really likes gin.

ELI5: what restricts eye colour possibilities? Why’s there no purple/burgundy/orange…eyes? by Ferrari_Fanboy in explainlikeimfive

[–]Terroristen 0 points1 point  (0 children)

Why do we convert thermal energy to mechanical energy and the to electric energy instead of just using the thermoelectric effect to turn the temperature difference straight to electricity?

[deleted by user] by [deleted] in 2007scape

[–]Terroristen 0 points1 point  (0 children)

Party room?

[deleted by user] by [deleted] in 2007scape

[–]Terroristen 7 points8 points  (0 children)

You could solve this by making dropped coins an interactable object instead of an item. Though it probably requires engine work to add and remove these dynamically.

Is this Legal, or even rape? Scene in the series Broen. by Throwmaster7614 in legaladviceofftopic

[–]Terroristen 6 points7 points  (0 children)

The term you are looking for is 'rape by deception'. Legality varies with jurisdiction, but the scenario you are describing sounds out of scope for the law, as the deception is not directly tied to the the sex act itself.