Fill a matrix with another
Given two multidimensional, rectangular arrays such as:
[ [1, 2],
[3, 4] ]
[ [1, 2, 3],
[4, 5, 6],
[7, 8, 9] ]
Your challenge is to repeat the smaller matrix to fill the larger.
For example, with the above, we expand it infinitely:
1 2 1 2 ...
3 4 3 4 ...
1 2 ...
@NobodyNeedsNames I've thought of that but that seems too typical. I want to get the most use out of it :P maybe it should do something variable, like time dependant? :PP
challenge inspired by me struggling to remember what "GCF, LCM, LCD, GCD" all mean
sadly i couldnt just send "GCM" since that apparently means "greatest common measure" which apparently means the same thing as greatest common divisor (??)
pondering alternate ways of thinking about talk interpreter, was trying to see if any logic gate could be repeatedly applied on each successive bit
dont think there could be, but the resulting table was interesting
off the top of my head id probably say "adheres to standards well, not trivial, provides lots of possible strategies" but also that last one is very hard to do intentionally lol
and also i personally am biased to trivial challenges :P becausei am bad
Yes, it's better to have challenges where several solutions are possible at first sight. After the thing is that it's not necessarily easy to do this intentionally even it can be quite hard, I think. But thanks :)!
I can't lie though, I really love seeing the retina 0 byte get used :P
feel like a marvel nerd when heroman shows up in the avenger credits. its like
omg the retina 0 byte program <3_<3
i mean i guess its cause like, it's not the same as some random "oh this lang has a builtin", its a logical feature of the language and it just happens to be useful based on how certain problems are defined lol
Hi guys it's Radvylf, the inventor of math. I'm introducing lcd today, short for least common divisor, which gives you the smallest number that's a divisor of both its inputs. Also is that the syntax for multiplication and division has switched, so putting 2 on top of a horizontal line and 3 under it means 6, and 2x means 2 divided by x.
No no no, this is just a minor patch, 2.21.1. In 2.22.0, we'll see long-awaited changes like the removal of trigonometry, and a new integer that breaks the fundamental theorem of arithmetic.
Seeing the queen's lasers
In chess, the queen piece can see arbitrarily far in each cardinal and intercardinal. What does this mean? Well, I'll show you with an ASCII drawing:
\..|../
.\.|./.
..\|/..
---Q---
../|\..
./.|.\.
/..|..\
It means the queen (notated as Q) can see along these lines (not...
Disclaimer: This does not do any justice on the rich topic of elliptic curves. It is simplified a lot. As elliptic curves recently got a lot of media attention in the context of encryption, I wanted to provide some small insight how "calculating" on an elliptic curve actually works.
Introduction
...
Introduction
Long story short: a few days ago i accidentally started knitting a sock and the pretty logical structure of the plain stitches lead me to the idea: Why don't we just ASCII-knit a sock?
Input
The input is an even integer N in the range [2,30].
Output
The output is a sock, obviously.
S...
i keep my processor's "Turbo Boost" off anyways because it makes my laptop overheat, but I doubt my personal laptop is a very high-value target for this sort of hack either
I wouldn't imagine you could get much useful information from running it in someone's browser, even if it's exploitable in browsers which it might not be
Well yeah, but there were implementations of Spectre which could run in browsers. I don't think there are for this yet, and more effective side channel attacks isn't nearly as bad as a lot of what Spectre could do
@thejonymyster thats probably fine, on my computer if i let it turbo-boost the processor my clock speed jumps to about 3.5-4 GHz constantly, and my laptop quickly hits about 200 degrees fahrenheight
Because it's only cross-process if the other process has spectre gadgets, but that's not "really" cross-process because it's one process exploiting another.
And to access kernel memory it has to cause the kernel to attempt speculative memory access, e.g. using eBPF.