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
60%
+1 −0
Challenges Multiply complex numbers.

Ruby, 35 bytes ->a{a.split.map{eval _1}.reduce :*} Try it online! Right tool for the job, I suppose. uses ruby 2.7+ features, so tio link will look different.

posted 3y ago by Razetime‭

Answer
60%
+1 −0
Meta Leaderboard bug: recognizing inline code blocks

There's a small problem with the leaderboard: It seems to be recognizing the first <code> block in the answer rather than the first <pre><code> block in the answer. The byte co...

0 answers  ·  posted 3y ago by Razetime‭  ·  edited 3y ago by Monica Cellio‭

50%
+0 −0
Challenges Add two negabinary integers

Ruby, 75 bytes ->t,u{g=->a{a.reduce{-2*_1+_2}};('%b'%(g[t]+g[u]+(y=43690)^y)).to_i.digits} Try it online! Uses latest ruby features, so tio link will look different. Takes two digit a...

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

Answer
60%
+1 −0
Challenges Shuffle a subset of a list

APL(Dyalog Unicode), 13 bytes SBCS {⍵[?⍨≢⍵]}@⎕⊢⎕ Try it on APLgolf! A tradfn submission which takes both lists on STDIN, second input is 1-indexed.

posted 3y ago by Razetime‭

Answer
71%
+3 −0
Meta Leaderboards are live

Few QoL improvements can be made: Some trivial challenges(i.e. "Hello World!") get many, many answers, so the leaderboard should show a scrollbar beyond some point(after the first 10 submissions, ...

posted 3y ago by Razetime‭

Answer
60%
+1 −0
Challenges Evens or Odds - you know this one

MAWP, 8 bytes @!2P2WA: Try it! 1 for odd and zero for even. mawp doesn't have modulus, so it floor divides by 2, multiplies by 2 and subtracts from the input.

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
77%
+5 −0
Challenges Are they abundant, deficient or perfect?

Husk, 10 bytes kSo±-ȯΣhḊḣ Try it online! keyon is very nice here, but it's still a bit too long, sadly.

posted 3y ago by Razetime‭

Answer
77%
+5 −0
Challenges Diagonalized alphabet

Task Print the following: ABDFHJLNPRTVXZ CABDFHJLNPRTVX ECABDFHJLNPRTV GECABDFHJLNPRT IGECABDFHJLNPR KIGECABDFHJLNP MKIGECABDFHJLN OMKIGECABDFHJL QOMKIGECABDFHJ SQOMKIGECABDFH USQOMKIGE...

7 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by radarek‭

50%
+0 −0
Challenges Evaluation order of an APL n-train

Husk, 8 bytes ηÖ↔mo⌈½ŀ Try it online! Same idea as xash's answer from CGCC.

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

Answer
50%
+0 −0
Challenges Backspace an array

Husk, 6 bytes Fo+hx0 Try it online! there's got to be a smarter way to do this with grouping.

posted 3y ago by Razetime‭

Answer
77%
+5 −0
Challenges Juggler sequences

Husk, 11 10 bytes U¡λ⌊^+.%2¹ Try it online! This can probably be trivially ported to Jelly. Explanation U¡o⌊Ṡ^o+.%2 ¡ iterate over the input infinitely, creating a list o ...

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

Answer
83%
+8 −0
Challenges Golf a FRACTRAN interpreter

Description From the Esolangs wiki, In Fractran, a program consists of a finite list of positive, rational numbers. The input to a program is a positive integer n. The list is then searched ...

8 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by torres‭

77%
+5 −0
Challenges Merge two strings

APL(Dyalog Unicode), 26 bytes SBCS {⊃x/⍨⊃¨⍺∘⍷¨x←,∘⍵¨(⊂⍬),,\⍺} Try it on APLgolf! A dfn submission which takes the inputs as left and right argument. I took way too long to come up with this. ...

posted 3y ago by Razetime‭

Answer
77%
+5 −0
Challenges Make my number a set

JavaScript (V8), 32 bytes f=n=>[...Array(n).keys()].map(f) Try it online! Somehow it doesn't recurse forever at n=0. Pretty nice.

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

Answer
60%
+1 −0
Challenges Really Cool Numbers

Husk, 9 bytes ΛöS=⌊AhḊḊ Try it online! or Verify all testcases returns number of divisors + 1 for true and 0 for false.

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

Answer
60%
+1 −0
Challenges Beaver Code Decryption

APL(Dyalog Extended), 32 bytes SBCS {1=≢⍵:⍵⋄0~⍨,⍉↑∇¨↓2 ¯1⍴⍵,0/⍨2|≢⍵} Try it on APLgolf! A dfn submission which takes a string as input. I thought this would be much shorter, but it's only a s...

posted 3y ago by Razetime‭

Answer
60%
+1 −0
Challenges Beaver Code Decryption

Husk, 8 bytes ΣTm?I₀ε½ Try it online! It's jelly but reversed. 1 byte lesser due to a single byte halve.

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

Answer
60%
+1 −0
Challenges Cumulative Counts

Husk, 4 bytes Sz#ḣ Try it online! Explanation Sz#ḣ Sz zip the input ḣ with its prefixes # using the count function

posted 3y ago by Razetime‭

Answer
50%
+0 −0
Meta Allow linking account with Code Golf Stack Exchange [duplicate]

In my user preferences in "Edit Profile", under the "Link Stack Exchange Account" heading, this shows up: An association with Code Golf Stack Exchange needs to be added for this site.

1 answer  ·  posted 3y ago by Razetime‭  ·  closed as duplicate 3y ago by Mithical‭

Question support discussion
81%
+7 −0
Challenges Word Set Square

Challenge Given a string, e.g. Hello, do the following: Mirror it: Hello -> HelloolleH and create a right triangle using it as the sides: H ee l l l l o...

11 answers  ·  posted 3y ago by Razetime‭  ·  last activity 1y ago by Shaggy‭

Question code-golf ascii-art
60%
+1 −0
Challenges Ratio limits of fibonacci-like series

Stax, 5 bytes òP^↓Φ Run and debug it Same idea as Quintec's answer. Input as a floating point number. Explanation 1gpun+ 1 start with 1 gp apply the following till a fixpoint...

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

Answer
77%
+5 −0
Challenges Is it a near-anagram?

Stax, 12 bytes ä╫◙=♥:≡ƒélΣæ Run and debug it +3 after correcting it(thanks, HakerH) Explanation b%s%>{s}M|-%1= b copy the two inputs %s%> is the first's length...

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

Answer
75%
+4 −0
Challenges The Pell Numbers

Introduction The Pell(no, not Bell) Numbers are a simple, Fibonacci-like sequence, defined by the following relation: $P_n=\begin{cases}0&\mbox{if }n=0;\\1&\mbox{if }n=1;\\2P_{n-1}+P_{n-2...

9 answers  ·  posted 3y ago by Razetime‭  ·  last activity 2y ago by torres‭

71%
+3 −0
Sandbox Word Set Square[FINALIZED]

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