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 »

Posts by Razetime‭

107 posts
71%
+3 −0
Challenges Make a frequency table (histogram)

Challenge Given an array in any suitable format, create a frequency table for it. i.e: Pair each unique element with the number of times it appears in the array. You can return the frequency tabl...

10 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Moshi‭

Question code-golf math
66%
+2 −0
Sandbox Gamer Meme Creator[FINALIZED]

posted 3y ago by Razetime‭  ·  edited 3y ago by Razetime‭

66%
+2 −0
Challenges Build a replacement ball in regex.

Ruby, 82 bytes ->w,n{[*0...w.size].permutation(n).map{e=w*1;_1.map{|x|e[x]='.'};e}.uniq.join '|'} Attempt This Online! uses permutation to do most of the work. Might be shorter with somethi...

posted 1y ago by Razetime‭

Answer
66%
+2 −0
Challenges Mark my beacons

Given a grid of numbers, mark the concentric areas around nonzero elements (beacons) decreasing from the value of the beacon till 1. For example, here are some grids with a single beacon: Size 1:...

0 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Moshi‭

Question code-golf matrix
66%
+2 −0
Meta Does Looping Counter qualify as kolmogorov-complexity?

No Your logic is correct. kolmogorov-complexity requires for the same constant fixed output across all solutions. This is not a static pattern, since it runs forever, so it doesn't fall under tha...

posted 2y ago by Razetime‭

Answer
66%
+4 −1
Meta Rules for function submissions

General requirements You need to have all the code that is necessary to create the function within your submission. For most languages, this may include the syntax for defining the name and argum...

posted 2y ago by Razetime‭

Answer
66%
+2 −0
Challenges Looping counter

Haskell, 35 bytes main=mapM putStrLn$iterate('*':)"*" Attempt This Online! 55 -> 39, with orthoplex's idea. 39 -> 35 from orthoplex.

posted 2y ago by Razetime‭  ·  edited 2y ago by Razetime‭

Answer
66%
+2 −0
Challenges Collatz conjecture; Count the tries to reach $1$

BQN, 31 28 bytes {1+(1≠𝕩)◶¯1‿𝕊2(|⊑÷˜∾1+3×⊢)𝕩} Try it online! An anonymous function which takes a number. the ¯1 branch is a bit tacky but saves a byte over (1+𝕊).

posted 3y ago by Razetime‭  ·  edited 3y ago by Marshall Lochbaum‭

Answer
66%
+2 −0
Challenges Digit Sum Integer Sequence (working title)

jq, 38 bytes while(1;.+("\(.)"|explode|max+min-96)) Try it online! prints the infinite sequence starting with $n$.

posted 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges Make my value binary

jq, 48 bytes [while(.>0;./2|floor)]|map(.%2)|reverse|join("") Try it online! jq is the Language of the month for September! if the output is not required as per the question, join can be o...

posted 3y ago by Razetime‭  ·  edited 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges It's Hip to be Square

Husk, 5 bytes ±£Θİ□ Try it online! similar to haskell, checks if the number is in the infinite list of squares.

posted 3y ago by Razetime‭  ·  edited 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges Guess the language! (Robbers' Thread)

Cracks Lundin's answer: C++ (gcc) %: %: define cops(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t) if(not false and k%:%:f%:%:d%:%:l(& (not true) <:%:i%:j%:k%:l" "%:m" "%:n%:o%:p%:q%:r%:s%:t:&...

posted 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges Guess the language! (Robbers' Thread)

Cracks Shaggy's answer: Japt ((Cops)&(Robbers))`¬ps „d žbÞ`¸ËhDÎmEgviuø Test it

posted 3y ago by Razetime‭

Answer
66%
+2 −0
Sandbox Length of a Sumac Sequence[FINALIZED]

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

66%
+2 −0
Challenges Caesar shift cipher

Ruby, 56 bytes ->s,i{a=[*?a..?z].rotate(i)*"";s.tr "A-Za-z",a.upcase+a} Try it online! tr is wildly useful here. Builds the tr string manually and replaces only the alphabets.

posted 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges Word Count Tool

Ruby, 55 bytes ->a{[a.split,a.tr($/,''),a.gsub(/[ ]/,'')].map &:size} Try it online! split removes all whitespace, but lines doesn't for some reason. Would've been useful in place o...

posted 3y ago by Razetime‭

Answer
66%
+2 −0
Challenges Solve Goldbach's Conjecture

Husk, 9 bytes ḟo=⁰Σπ2İp Try it online! Explanation ḟo=⁰Σπ2İp İp take the infinite list of primes π2 cartesian power 2 (all possible pairs) ḟo first pair which satisfie...

posted 4y ago by Razetime‭

Answer
66%
+2 −0
Challenges Golf me a polygonal loader

CGCC Sandbox, Codidact Sandbox Given three positive integers as input, animate an ascii-art polygonal loading symbol on the screen. Intro Using the first input $n$, Take one the following regul...

1 answer  ·  posted 4y ago by Razetime‭  ·  edited 3y ago by General Sebast1an‭

66%
+2 −0
Challenges "Hello, World!"

RoadLang, 59 bytes wagwan my slime man say"Hello, World!" chat wit u later fam My first RoadLang answer! And probably the first one on this site! Removing any of the words says "Aight the ...

posted 4y ago by Razetime‭

Answer
60%
+1 −0
Challenges The Camelot Wheel

APL (Dyalog Unicode), 110 67 bytes {(⍕((f⊖⍪'AEBFCGDAEBFD'),r⌽12↑¯6↑5⍴'-')⍳2↑⍵),⎕a⌷⍨1+0≠f←¯3+r←3×'i'∊⍵} -43 bytes from dzaima. Requires input exactly as shown in the diagram. A bit fiddly with...

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

Answer
60%
+1 −0
Challenges Longest Increasing Subsequence

Husk, 10 bytes L►LfΛo<0-Ṗ Try it online! Explanation L►LfΛo<0-Ṗ Ṗ power set of input f get elements which match the following: Λo - all pairwise difference...

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

Answer
60%
+1 −0
Challenges Tile pyramids on top of each other!

Canvas, 9 7 bytes H/×║∔}r Try it here! Explanation H/×║+}r H } push empty art and start a loop from 1..n /× repeat '/' i times ║ palindromize horizontally(no overlap) ...

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

Answer
60%
+1 −0
Sandbox Golf me a polygonal loader

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

60%
+1 −0
60%
+1 −0
Sandbox Catch the fruit

posted 4y ago by Razetime‭