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 Razetime‭

Type On... Excerpt Status Date
Comment Post #286363 BQN has an [SBCS](https://github.com/mlochbaum/BQN/blob/master/commentary/sbcs.bqn), so yes
(more)
over 2 years ago
Edit Post #286367 Initial revision over 2 years ago
Answer A: 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 argument list of the function, and delimiters for the function body. Some languages have first class fun...
(more)
over 2 years ago
Edit Post #286366 Initial revision over 2 years ago
Question 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.
(more)
over 2 years ago
Comment Post #286363 5 bytes: `⋈⥊↕∘×`
(more)
over 2 years ago
Comment Post #286359 Oh, I see. I'll add this in a Meta post later, but the main rules for function submissions are as follows: You need to have all the code that is necessary to create the function within your submission. Some languages have first class functions, so they can just put the value in a submission and ask m...
(more)
over 2 years ago
Comment Post #286359 Where are `m` and `n` coming from here?
(more)
over 2 years ago
Comment Post #286360 You will need to change the answer to take `m` and `n` only. `m*n` is not an allowed argument.
(more)
over 2 years ago
Edit Post #286354 Initial revision over 2 years ago
Question 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 ``` Challenge Generate a range grid, given `m` and `n`. You can display it, ...
(more)
over 2 years ago
Edit Post #286325 Initial revision over 2 years ago
Article Create a range grid
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 ``` Challenge Generate a range grid, given `m` and `n`. You can display it, or return an array. This is `code-golf`. Shortest ...
(more)
over 2 years ago
Edit Post #286295 Post edited:
over 2 years ago
Edit Post #286295 Post edited:
over 2 years ago
Comment Post #286295 Good idea! I've used a similar idea in my edit.
(more)
over 2 years ago
Edit Post #286295 Initial revision over 2 years ago
Answer A: Looping counter
Haskell, 35 bytes main=mapM putStrLn$iterate(&#39;&#39;:)&quot;&quot; Attempt This Online! 55 -> 39, with orthoplex's idea. 39 -> 35 from orthoplex.
(more)
over 2 years ago
Edit Post #286015 Post edited:
over 2 years ago
Edit Post #286015 Initial revision over 2 years ago
Answer A: Keyword golfing
BQN, 107 bytes ``` A↩C←A⇐¯π{𝕣:@;/⊏𝕩.y?𝕗‿∊𝕊⟨𝕤,⍷⟩𝕏𝕎𝔽𝕨𝔾𝕘}∞˙⌜˘¨´˝`(•Js⎉⊔⎊⌽⌾⍉⚇«∘»·∧○∨⍋⍒↑↓≍∾˜⥊⋈↕⊢⍟⊣¬!|≡≢/≥⟜≠=⊸≥⊐⊘⊒◶⊑><⌊⌈√⁼⋆+-×÷)⋄# ``` BQN doesn't have keywords but primitive symbols are reserved. It's quite funny how this manages to compile.
(more)
over 2 years ago
Suggested Edit Post #285924 Suggested edit:

(more)
helpful almost 3 years ago
Edit Post #285888 Post edited:
almost 3 years ago
Suggested Edit Post #285888 Suggested edit:

(more)
helpful almost 3 years ago
Comment Post #285893 First time i've seen ESCR on a code golf site. Nice answer and explanation!
(more)
almost 3 years ago
Edit Post #285880 Initial revision almost 3 years ago
Question 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, double, etc), not as a string. The catch, the characters 0 through to 9 cannot be used. One examp...
(more)
almost 3 years ago
Comment Post #285743 This answer is not correct. You need to get 15625 as an output given your testcase.
(more)
almost 3 years ago
Edit Post #285675 Initial revision almost 3 years ago
Article Compute T-shirt size
WIP. You will be given an ascii-art T shirt. ``` / \/ \ |/| |\| || ``` this is the basic structure. the challenge will be about getting the size as a string (XS, S, M, L, XL, XXL)
(more)
almost 3 years ago
Edit Post #285510 Initial revision almost 3 years ago
Answer A: Determine whether an integer is square-free
BQN, 13 bytesSBCS ```none ∧´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: - range 2..n+1 - square it, then modulo n - are all remainders ≠ 0?
(more)
almost 3 years ago
Comment Post #285477 [relevant oeis](http://oeis.org/A005117)
(more)
almost 3 years ago
Edit Post #285471 Initial revision almost 3 years ago
Answer A: 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 questions in there, so it gets a sizeable amount of traffic for answers. Good questions get more votes since co...
(more)
almost 3 years ago
Comment Post #285064 Recently there have been newer endeavours to allow online code execution like https://ato.pxeger.com/, so even though it is tempting to use TIO now, it will likely fall out of favour due to lack of updation.
(more)
almost 3 years ago
Comment Post #285404 even shorter is `puts"p #{gets}+gets.to_i"` since `p` doesn't make a difference for numbers
(more)
almost 3 years ago
Edit Post #285139 Initial revision almost 3 years ago
Question 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 address End address Class A 0 128 (27) 16,777,216 (224) 2,147,483,648 (231) 0.0.0.0 ...
(more)
almost 3 years ago
Edit Post #284777 Post edited:
almost 3 years ago
Comment Post #284777 the string will always be a valid ip address, so there will be no whitespace.
(more)
about 3 years ago
Comment Post #284777 I've edited the question to clarify these
(more)
about 3 years ago
Edit Post #284777 Post edited:
about 3 years ago
Comment Post #284777 yup this is ipv4
(more)
about 3 years ago
Edit Post #284777 Post edited:
about 3 years ago
Edit Post #284777 Post edited:
about 3 years ago
Edit Post #284777 Initial revision about 3 years ago
Article Find the IP address class [FINALIZED]
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 address End address Class A 0 128 (27) 16,777,216 (224) 2,147,483,648 (231) 0.0.0.0 ...
(more)
about 3 years ago
Comment Post #284268 [Wheat Wizard on SE Chat:](https://chat.stackexchange.com/transcript/message/59203474#59203474) It could use `mod` instead of `cycle` to save 2 bytes.
(more)
about 3 years ago
Edit Post #284267 Initial revision about 3 years ago