Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for TheCodidacter, or rather ACodidacter‭

Type On... Excerpt Status Date
Edit Post #288903 Post edited:
Errors
over 1 year ago
Comment Post #288903 Just tested the code on every possible transformation, and it incorrectly gives labels to some transformations of tetrominoes 4-9, 11, 13, 21, and 22. Wow. Hopefully I don't take another million years to fix this :)
(more)
over 1 year ago
Comment Post #288903 @#53890 thanks! You're right, I did implement translation but forgot to mention it in the post. It was **way** easier than the two other transformations though _(which took 6 million years)_. Also, just curious... you've solved the challenge yourself, right?
(more)
over 1 year ago
Edit Post #288903 Post edited:
This? It?
over 1 year ago
Edit Post #288903 Post edited:
Capitalization and typo correction
over 1 year ago
Edit Post #288903 Initial revision over 1 year ago
Answer A: Label a hinged tetromino
JavaScript (Node.js), 892 bytes (not fully working) ```js I=>{N=a=>Math.min(...a);X=a=>Math.max(...a) C=[];s=[t=[],[]];S="splice";p="push" c=IP="map")) d=X(c[1])-X(c[r=0]) d>0?r=1:d||c1((a,b)=>a-1||Cp) if(''+c[0].filter((a,b)=>CO="indexOf">=0&&c1!=1)){r=1,C=[],c0((a,b)=>a==1&&Cp) if(''+c[1]...
(more)
over 1 year ago
Comment Post #288502 Thank you for changing your mind, haha (I'd be impressed if anyone can do the pentominoes, though!)
(more)
over 1 year ago
Comment Post #288502 Fun fact (after 6 days): I haven't given up yet, and will probably post an (unoptimized) answer soon. It's that some tetrominoes are almost indistinguishable, which is **really really** annoying. Cool challenge though 🙂
(more)
over 1 year ago
Comment Post #288502 Alright, thanks for the clarification! Will give it a shot, though might not work haha.
(more)
over 1 year ago
Comment Post #288502 Suppose we have a set of coordinates (like you said), would it be fine to group all the X coordinates to one set and the Y coordinates to another for the input? Does that count as partial precalculation? Just asking, not saying I'll use this 🙂
(more)
over 1 year ago
Edit Post #288683 Post edited:
It -> This
over 1 year ago
Edit Post #288683 Post edited:
More confidence, yeay!
over 1 year ago
Edit Post #288683 Post edited:
Simpler O notation
over 1 year ago
Comment Post #288683 Hmm, alright. Thanks!
(more)
over 1 year ago
Edit Post #288683 Initial revision over 1 year ago
Answer A: Calculate the Z-array
JavaScript (Node.js), 86 bytes ```js X=>{Y=[];for(i in X)Y[i]=0,X.slice(i).map((a,b)=>a-X[b]?i='':Y[i]++);return Y.slice``} ``` Attempt This Online! Using fancy notation, the time complexity is $$\sum^n{i=1}i$$ ...or $O(n^2)$, which according to this is horrible/worst haha. Defini...
(more)
over 1 year ago