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

Type On... Excerpt Status Date
Answer A: How should we handle incorrect answers?
Do nothing It's wrong but well intentioned. The best we can do is leave a comment saying why its wrong.
(more)
over 1 year ago
Answer A: How should we handle incorrect answers?
Lock it Locking a post disallows edits, comments and votes. I am not sure if it allows the original poster to edit or not, but this would be one way to preserve the answer while preventing interaction with it, possibly allowing it to be fixed in the future.
(more)
over 1 year ago
Question How should we handle incorrect answers?
Recently a flag came to my attention on this post: https://codegolf.codidact.com/posts/280372/281943#answer-281943 It is a well-intentioned answer to the challenge, but unfortunately it is wrong, and despite being notified, the user who posted the answer has not fixed it. What should we do in ...
(more)
over 1 year ago
Answer A: Under which condition is a function that takes arguments other than those specified by the challenge by itself a valid solution to a challenge?
What you said > a function is a valid solution to a challenge if and only if it can be called with no more than the specified input of the task This sounds reasonable to me. If you want to make your function take in specific parameters, code in defaults, or write a program instead.
(more)
about 2 years ago
Answer A: Can you give me half?
Japt, 1 byte ½ Test it [Jelly], Vyxal, 1 byte . Try it online! Yeah, golf langs still kind of kill this challenge.
(more)
about 2 years ago
Answer A: Find the IP address class
Japt, 26 25 bytes ;Bg4mUqL În10,2 ùT8 qT Îl Try it Long and unwieldy, I'm rusty. Looks at the first 0 in the bitstring of the first octet.
(more)
over 2 years ago
Answer A: New solution to same challenge in same language: Change existing answer or add new one?
Make a new post If they are completely different solutions, I would say they should be judged separately.
(more)
over 2 years ago
Answer A: Tips for golfing in Java
Use higher versions of Java Seriously, it's crazy what sort of features have been added since Java 8. I hardly recognize the language anymore... Examples: Constructing Lists Before, you had to do something like `Arrays.asList(new String[]{"a", "b", "c"})`, but in Java 9+ you have `List.of...
(more)
over 2 years ago
Answer A: Reactions on Code Golf Codidact
New reactions are up "Works for me" is gone, "Outdated" is now invalid, and "Dangerous" has stayed the same.
(more)
over 2 years ago
Answer A: Reactions on Code Golf Codidact
Interesting! / Cool! / Wow! Any of these names would work, I think. This would be the dark green reaction in place of "works for me". Intended to be used for answers that are extra unique/impressive in some way, even if they aren't the golfiest, or just for answers that you think deserve more than...
(more)
over 2 years ago
Question Reactions on Code Golf Codidact
Reactions were just released! See the main meta post here for the details. Currently, the default reactions look like this: Reactions panel Now, I would argue that none of these fit for Code Golf - so what reactions do you think the community should have?
(more)
over 2 years ago
Answer A: Expand a polynomial
Japt `-Q`, 15 12 bytes à üÊËx×JpE -3 bytes thanks to @Shaggy Uses Vieta's. Try it
(more)
over 2 years ago
Answer A: Default Rules: Code Golf I/O
You may modify the input in-place If a function takes an input `a`, it is acceptable that `a` contains the intended output after executing instead of other forms of output. Note that this means `a` must be mutable to begin with and the function must actually mutate `a`. Example
(more)
over 2 years ago
Answer A: Make my value binary
[Python 3], 3 bytes bin Try it online!
(more)
over 2 years ago
Answer A: Compute the determinant
[Python 3], 29 bytes import numpy numpy.linalg.det Yeah, this is really boring, but I'm curious if this can be beat in Python. Try it online!
(more)
over 2 years ago
Answer A: My house is destroyed! Can you make me one?
Canvas, 9 7 bytes #*⌐⤢n↔n -2 bytes thanks to @Razetime Uh I don't really know how to use Canvas - what I think this does is create the vertical wall, then half the horizontal one, then concatneate and mirror them. Try it here!
(more)
over 2 years ago
Answer A: What's a code bowling challenge?
It's the opposite of code golf. Code bowling is essentially a challenge where you try to write the longest code possible, as opposed to the shortest code. Now, this format comes with many issues, and you may be able to see why. For example, just adding comments increases code length - you need a v...
(more)
almost 3 years ago
Answer A: Guess the language! (Cops' Thread)
Canvas, cracked by Shaggy, 129 bytes ``` /bin/bash > echo "Cops and Robbers"; #Testing, testing 1 2 3 Segmentation Fault > echp "Cops and Robbers"; #Huh? Cops and Robbers ``` This version of bash seems to have some... questionable behavior...
(more)
almost 3 years ago
Answer A: Three Number Monte
The "Uppers" ```py def oneup(data, history): if len(history) > 0: prev = history[-1] if prev[2] > 1: better = [prev[0] + 1, prev[1] + 1, prev[2] - 2] elif prev[1] > 1: better = [prev[0] + 1, prev[1] - 2, prev[2] + 1] else: better = [prev[0] - 2, prev[1] + 1, prev[2] + 1]...
(more)
almost 3 years ago
Question Three Number Monte
The Rules In this game, each round, every player faces off against every other player in a round robin format. In each match, players pick 3 positive integers that sum to 360. Let's say player 1 picks `[a, b, c]` and player 2 picks `[x, y, z]` Now `a` is compared to `x`, `b` is compared to `y`, an...
(more)
almost 3 years ago
Answer A: Default Rules: Random
Every outcome must be possible For example, if the challenge requires a random number from 1-5, all 5 numbers must be possible. It does not need to be uniformly random (unless otherwise specified) - all 5 numbers may have different probabilities of occurring, but they all must have a nonzero proba...
(more)
almost 3 years ago
Question Default Rules: Random
What is random defined as on this site? How are answers allowed to handle random chance?
(more)
almost 3 years ago
Answer A: Default Rules: Flags and Other Compile-Time Options
IF flags take arguments, those arguments count for the code length For example, in Japt, `-F"string"` is a flag that prints `"string"` if the output is falsy - in my opinion this should add 6 bytes on to the length of the answer (in language `Japt -F`).
(more)
almost 3 years ago
Answer A: How do we handle standardizing things?
Update: the meta tag is live, so we can start the posts. I have created a few here with a few sample answers, but the rest is up to the community! Make sure to vote on other answers as well as post your own. Input/Output Loopholes
(more)
almost 3 years ago
Answer A: Default Rules: Loopholes
Cat Quines Quines that simply output the source code due to some sort of implicit I/O, such as `1` in many languages.
(more)
almost 3 years ago
Question Default Rules: Loopholes
What sort of loopholes are assumed to be disallowed in any challenge on this site? One loophole per answer, please. Vote up answers if you want them disallowed, and down otherwise.
(more)
almost 3 years ago
Answer A: Default Rules: Code Golf I/O
Functions may use arguments or lists of arguments interchangeably For example, if a challenge requires defining `f(x, y, z)`, `f(a)` is also acceptable where `a[0] = x, a[1] = y, a[2] = z`.
(more)
almost 3 years ago
Answer A: Default Rules: Code Golf I/O
You may output delimiter-separated values instead of a list For example, the output `[1,2,3]` could be represented as `1 2 3` or `1|2|3`.
(more)
almost 3 years ago
Answer A: Default Rules: Code Golf I/O
Functions may take input via arguments and output via return value Functions may also use STDIN/STDOUT as they wish.
(more)
almost 3 years ago
Question Default Rules: Code Golf I/O
What input/output methods do you think should be allowed/disallowed while code golfing on this site? What guidelines for input/output methods do you think should be in place? One method per answer, please. Vote up/down according to if you believe the given method should be allowed.
(more)
almost 3 years ago
Answer A: Is my extension-like library allowed to be used in answers?
Yes, including the fact that it's in C. Using a heading such as "C + BMPL" that links to the library and explains what it does should be fine. I also think that having a way to run it (preferably in one line) to verify solutions would be nice.
(more)
almost 3 years ago
Answer A: How do we handle standardizing things?
This sounds like a great idea to me. To summarize how we can move forward on this: For the Codidact Team Create a new meta tag (defaults? name pending) that is one of the options for the required tag on meta Create a new post type that applies to all posts and answers on posts with this tag th...
(more)
almost 3 years ago
Answer A: Evens or Odds - you know this one
Japt, 1 byte u Japt, more like JABT (just another builtin) :P Try it
(more)
almost 3 years ago
Question Word Count Tool
In Google Docs, the word count tool looks like this: Word count Pages would not make sense, but your goal is to implement every other count. Definitions Words are strings of text separated by any amount of whitespace (spaces, tabs, newlines). Characters are all printable bytes. For the ...
(more)
almost 3 years ago
Question Really Cool Numbers
Define a cool number as a number whose proper divisors (all except for the number itself) have an integral mean. Define a really cool number as a number whose divisors (including itself) are all cool. (We explicitly define 1 to be both cool and really cool.) Given a positive integer, determine whethe...
(more)
about 3 years ago
Answer A: Cumulative Counts
Japt, 14 11 8 bytes £¯YÄ è¥X Try it -3 bytes thanks to @Shaggy
(more)
about 3 years ago
Answer A: Ratio limits of fibonacci-like series
[APL (Dyalog Classic)], 7 bytes ⎕+∘÷⍣=1 Well, rak is probably not going to answer this, so I might as well ;p Try it online!
(more)
about 3 years ago
Answer A: The Pell Numbers
[APL (Dyalog Classic)], 20 18 17 16 bytes ⊢/,+.×⍣⎕⍨∘.+⍨⌽⍳2 Matrix implementation, requires `⎕IO←0`. Thanks to @Razetime for the idea, -3 bytes by me Try it online! [APL (Dyalog Classic)], 19 18 bytes {⍵ {×⍵:⌊0.5+(∇⍵-1)÷1-⍨2÷2⋄1} Random fun implementation Try it...
(more)
about 3 years ago
Answer A: The Pell Numbers
[Python 3], 39 bytes f=lambda x:x if x<2else 2f(x-1)+f(x-2) Generic recursive implementation Try it online!
(more)
about 3 years ago
Question Win a War (or at least a few battles)
You have an army of size $n$ that you need to split up to fight $k$ battles simultaneously against an opposing army $A$. In each battle, the army with the most troops present wins - no one wins a tie. Your scouts have just reported back with the enemy troops' movements - how can you divide your army ...
(more)
about 3 years ago
Question Solve Goldbach's Conjecture
Goldbach's Conjecture states that every even whole number greater than 2 is the sum of 2 prime numbers. Your task is to return those 2 prime numbers, given an even whole number as input. There are often multiple solutions - any solution will do. Input/Output Examples These examples only show on...
(more)
about 3 years ago
Answer A: Create an Alphabet Diamond
Japt `-R`, 14 13 bytes ;Bãê kb'A û ê Test it Takes all substrings of the alphabet, palindromizes them, and then takes only the ones starting with A and centers and mirrors that too. -1 byte thanks to @Shaggy
(more)
about 3 years ago
Question The Camelot Wheel
Given a musical key, output its number and letter on the Camelot Wheel (shown below). Camelot Wheel Input A musical key as a string, as shown on the wheel. The words "Sharp" and "Flat" may be replaced with symbols (such as "#" and "b") if you wish. Output The number and letter, either ...
(more)
over 3 years ago
Answer A: Generate Lewis Caroll's Jabberwocky
Japt, 625 615 bytes ``` `'T°s ߍ¦g, „d e sҐy ‘vƒ Did gyœ „d g‹½e ˆ e °¼; A¥ Úßy ØÀ e ޒgovƒ, A˜ e Ú  ÎÈs ŒtgŸ¼. ` +i` "BeØ e {=`Jab¼rwock`}, my s! T” jaws È ßÒ, e claws È ¯t®! BeØ e Jubjub bird, „d д T” è–ムBÂrsn…®!" He ‘ok –s vŽpal sÙ ˆ Ê@: Lg ÈØ e µnxo´ foe ” Ñht...
(more)
over 3 years ago
Answer A: Output 256 in many different ways
Japt, 10 11 13 15 solutions ``` 256 ``` Works as you would expect. ``` 8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8--8 ``` Subtracting negative numbers. ``` 44 ``` Power. ``` 9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9...
(more)
over 3 years ago
Answer A: Reverse an ASCII string
Laser, 9 bytes ``` c⌜ps \U# ``` My own language's showcase time! This is a 2D language with an instruction pointer initially pointing to the right. It takes implicit input as an array of characters. Explanation: ``` c⌜p repeat as long as the current stack (input) isn't empty: ...
(more)
over 3 years ago
Answer A: Reverse an ASCII string
Japt, 1 byte w Uh... yeah. Probably similar solutions for many other golf langs. Try it
(more)
over 3 years ago
Question Longest Increasing Subsequence
Given an array of numbers, output the length of the longest increasing (not necessarily contiguous) subsequence. It is guaranteed that there are no duplicates in the array. For example, if the input was `[1, 5, 2, 4]`, the answer would be `3` for the subsequence `[1, 2, 4]`. More I/O Examples `...
(more)
over 3 years ago
Article The Camelot Wheel [FINALIZED]
Given a musical key, output its number and letter on the Camelot Wheel (shown below). Camelot Wheel Input A musical key. Format is flexible - you may take in a string, an array of [note, sharp/flat/none, major/minor], or similar. Output The number and letter, either as a string, tuple,...
(more)
over 3 years ago
Answer A: What is the Q&A category for?
It's for non-challenge questions. These might be general tips questions, questions about how to golf specific pieces of code, common golf paradigms, etc. Here are some examples from SE that might fit into this category. https://codegolf.stackexchange.com/questions/54/tips-for-golfing-in-python ...
(more)
over 3 years ago