Q&A on metas
I feel the Q&A format is just inherently bad for meta sites. I also want to say that Q&A does not need to be completely gone, but metas can at least be diversified with the type of content. Or maybe we throw out Q&A and adopt another model.
In general, Q&A seems antithetical to metas...
@qwr presumably this is trivial because most utf-8 parsing libraries have an isvalid() method. feel free to submit the challenge anyway to the sandbox, though i suspect this is either too easy or way too hard
A snake is defined as a path around a two dimensional grid which touches each square exactly once by repeatedly moving one up/down/left/right, starting at the square (0, 0). Below is an example of one snake of a 3x4 grid:
0 1 2 3
7 6 5 4
8 9 10 11
For any positive integer N, there are N s...
Python3, 184 bytes
def f(n):
q=[(0,0,[(0,0)])]
for x,y,p in q:
if len(p)==2*n:yield p;continue
q+=[(*T,p+[T])for X,Y in[(0,1),(0,-1),(1,0),(-1,0)]if 0<=x+X<2 and 0<=y+Y<n and(T:=(x+X,y+Y))not in p]
Try it online!
This answer outputs the coordinates of each square in order, rather than giving the grid with the indices. It wasn't my intended format, but I suppose there's no harm in allowing it -- thoughts?
I know what it does, is this like a don't post spoilers thing? Lol
I'm used to using maximum and minimum reductions in Uiua, though, since it doesn't have logical or/and.
Well, it does now have an experimental GCD function which uses the glyph of logical or, because its reduction identity is zero, whereas the reduction identity of maximum is ¯∞. (Likewise multiplication is sometimes used as and-reduction since it's reduction identity is 1 rather than +∞)
@Themoonisacheese there are many challenges that have builtins. obviously they are discouraged. I believe the actual code needed can simply be a state machine on the byte string.
@qwr i mean yes, realistically you just have to test if each byte is or isn't correct according to some parameters but actually encoding these parameters in a way that is golfy is the very hard part
The Cypro-Minoan syllabary (CM), more commonly called the Cypro-Minoan Script, is an undeciphered syllabary used on the island of Cyprus and at its trading partners during the late Bronze Age and early Iron Age (c. 1550–1050 BC). The term "Cypro-Minoan" was coined by Arthur Evans in 1909 based on its visual similarity to Linear A on Minoan Crete, from which CM is thought to be derived. Approximately 250 objects—such as clay balls, cylinders, and tablets which bear Cypro-Minoan inscriptions, have been found. Discoveries have been made at various sites around Cyprus, as well as in the ancient city...
Gotta love JavaScript. An event handler I'm writing stopped working; part of the function would run, and part of it wouldn't. The culprit: referring to a variable that wasn't in scope. You would think that that would cause some kind of error message in the console, but nope. Just fails silently.
I think that if we call bigbird bigbird we should use Frog's proper name and call him Kermit! (Apologies in advance if Frog is female.) Can we hire Snuffleupagus next? — SincFeb 13 at 14:11