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
75%
+4 −0
Challenges Plain black webpage

HTML, 16 bytes <body bgcolor=0> an attribute that works well for this challenge. tested on Mozilla Firefox. -3 from [Object object]

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

Answer
50%
+0 −0
Challenges Is it a valid hidden word?

Ruby, 128 bytes ->x,y{g=->c{c.chars.join" ?"} !x[y]&&(x.match?(/.+#{g[y]}.+/)||(0...(y.size-1)).any?{x[/^#{g[y[0.._1]]}.+#{g[y[(_1+1)..]]}$/]})} Attempt This Online! bookends ar...

posted 6mo ago by Razetime‭

Answer
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 10mo ago by Razetime‭

Answer
50%
+0 −0
Challenges Encode with ROT13.5

Stax, 15 bytes ⌐♪aù¢φσX▀┼╜°«↕j Run and debug it

posted 1y ago by Razetime‭

Answer
60%
+1 −0
Challenges Knight safe squares

APL(Dyalog Unicode), 64 bytes SBCS {64-≢∪x,u/⍨∧/¨(>∘0∧<∘9)u←⊃,/(a/⍨2|+/¨|a←,∘.,⍨1 2,-1 2)∘+∘⊂¨x←⍸⍵} Try it on APLgolf! A dfn which takes a boolean grid.

posted 1y ago by Razetime‭

Answer
60%
+1 −0
Challenges Lowercase, but not just the letters

APL (Dyalog APL), 42 bytes {⎕UCS⊢2⊥1@2⊢(7⍴2)⊤⎕UCS⍵} Attempt This Online! In APL, base encoding(⊤) returns a matrix, so setting the lowercase bit is very easy with 1@2, setting the entire secon...

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

Answer
60%
+1 −0
Challenges Mediocre pop count

APL (Dyalog APL), 61 bytes {⍵/⍨~(⊢∊⌊/,⌈/)+⌿0 1↓2⊥⍣¯1⊢0,⎕UCS⍵} Attempt This Online! APL's style of filter works very well here, since we can check for the max and min elements here: (⊢∊⌊/,⌈/) ...

posted 1y ago by Razetime‭

Answer
50%
+0 −0
Challenges The holeyest base

Ruby, 77 bytes ->x{(2..16).max_by{x.to_s(_1).chars.sum{|y|"".bytes[y.hex]}}} Attempt This Online!

posted 1y ago by Razetime‭  ·  edited 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 1y ago by Razetime‭  ·  last activity 1y ago by Moshi‭

Question code-golf matrix
50%
+0 −0
Sandbox Mark my beacons

posted 1y ago by Razetime‭

Article code-golf matrix
81%
+7 −0
Challenges Find n Niven Numbers

Challenge A Niven number is a positive integer which is divisible by the sum of its digits. For example, 81 -> 8+1=9 -> 81%9=0. Your task is to find the first n Niven numbers, given n. Te...

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

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 1y ago by Moshi‭

Question code-golf math
50%
+0 −0
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
77%
+5 −0
Meta Rules for function submissions

What are our rules for function submission? What constitutes a function, and what makes a submission valid? Language agnostic answers are allowed.

2 answers  ·  posted 2y ago by Razetime‭  ·  last activity 2y ago by Lundin‭

Question discussion
77%
+5 −0
Challenges Create a range grid

This challenge is based on the i. verb from J. A range grid is basically a range of m × n numbers fit into a rectangular grid with m rows and n columns. A 2×3 range grid would be: 0 1 2 3 4 5 ...

8 answers  ·  posted 2y ago by Razetime‭  ·  last activity 1y ago by Shaggy‭

Question code-golf matrix
71%
+3 −0
Sandbox Create a range grid

posted 2y ago by Razetime‭

Article code-golf matrix
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
60%
+1 −0
Challenges Keyword golfing

BQN, 107 bytes A↩C←A⇐¯π{_𝕣_:@;/⊏𝕩.y?𝕗‿∊𝕊⟨𝕤,⍷⟩𝕏𝕎𝔽𝕨𝔾𝕘}∞˙⌜˘¨´˝`(•Js⎉⊔⎊⌽⌾⍉⚇«∘»·∧○∨⍋⍒↑↓≍∾˜⥊⋈↕⊢⍟⊣¬!|≡≢/≥⟜≠=⊸≥⊐⊘⊒◶⊑><⌊⌈√⁼⋆+-×÷)⋄# BQN doesn't have keywords but primitive symbols are reserved. It's ...

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

Answer
86%
+11 −0
Challenges Can you give me half?

Challenge idea taken from: Eliseo D'Annunzio Task Provide code that evaluates to 0.5 numerically, i.e. the output must be recognized by your chosen language as a numeric value (Number, float, dou...

23 answers  ·  posted 2y ago by Razetime‭  ·  last activity 9mo ago by RubenVerg‭

50%
+0 −0
Sandbox Compute T-shirt size

posted 2y ago by Razetime‭

60%
+1 −0
Challenges Determine whether an integer is square-free

BQN, 13 bytesSBCS ∧´0≠⊢|˜·×˜2+↕ Run online! A train submission. It's 2 bytes shorter than the lambda version {∧´0≠𝕩|˜×˜2+↕𝕩}, due to omitting curly braces. The idea is similar to ruby: ran...

posted 2y ago by Razetime‭

Answer
71%
+3 −0
Meta How can we grow this community?

Questions The most important thing to gain traffic in a code golf site is having good questions. SE code golf has 12,718 questions(and counting), and many people are still actively posting questio...

posted 2y ago by Razetime‭

Answer
75%
+4 −0
Challenges Find the IP address class

Task Given an IP address as a string, find its IP address class. For reference, here is a table: Class Leadingbits Numberof networks Addressesper network Total addressesin class Start...

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

Question code-golf