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 »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
1.5k posts
 
50%
+0 −0
Sandbox Connect the corners without 4 in a row [FINALIZED]

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

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 55 fruit salad: choose your own Kolmogorov complexity

Python 3, 319 318 bytes print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Back...

posted 1y ago by trichoplax‭  ·  edited 7mo ago by trichoplax‭

Answer
50%
+0 −0
Sandbox Balanced quinary quasiquine [FINALIZED]

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

66%
+2 −0
Challenges 8 coexisting queens

x86-64 machine code, 27 bytes 6A D7 58 99 B1 10 48 D3 C0 48 AB C6 07 0A AE 80 C1 48 73 F2 FF C2 74 EC 88 37 C3 Try it online! Following the standard calling convention for Unix-like systems (f...

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

Answer
60%
+1 −0
Q&A Up to date JavaScript Try-It-Online

Try it online doesn't support the latest JavaScript features such as optional chaining or null coalescence, which are very useful character-saving operators. Is there another site like TIO, but whi...

1 answer  ·  posted 1y ago by Moshi‭  ·  last activity 1y ago by trichoplax‭

Question try-it-online
75%
+4 −0
Challenges Knight safe squares

Given a chess board with some knights on it, say how many squares are neither attacked by a knight nor containing a knight. Input An 8 by 8 grid where each square is either a knight or empty T...

3 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 8mo ago by Karl Knechtel‭

Question code-golf
71%
+3 −0
Challenges The holeyest base

Japt -h, 19 18 bytes Gõ ñ@ìX xg#‘5#}4s3 Try it Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U G :16 õ :Range [1,G] ñ :Sor...

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

Answer
66%
+2 −0
Challenges 8 coexisting queens

Japt -R, 16 15 bytes Uses spaces for #s and "s for Qs. ##Ë64ì £QùXÄÃy Test it (footer reformats the output to use the characters from the spec) This one uses 1s for #s. ##Ë64ì £#ÿ¤hXQ ...

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

Answer
66%
+2 −0
Challenges The holeyest base

Sclipting, (UTF-16) 86 bytes 標갠 관上가①要❶❹剩걉눑감⓶重右갰雙⓷加⓶❸分終⓷棄終并❶訂乾⓶折❷同終長괐縮⒈棄丟 Explanation: Input n 標 갠 관上 for b from 2 to 16 가 s = 0 ① n' = n 要 while n' is not 0 ❶❹剩 x = n...

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

Answer
60%
+1 −0
Challenges The holeyest base

Ruby, 63 bytes ->n{(2..16).max_by{|x|n.digits(x).sum{45088003.digits(3)[_1]}}} Attempt This Online!

posted 1y ago by steffan153‭

Answer
60%
+1 −0
Challenges The holeyest base

Jelly, 20 bytes ³b‘ị“ḃṘ¤’b3¤S ⁴ḊÇÐṀḢ Try it online!

posted 1y ago by steffan153‭

Answer
60%
+1 −0
Challenges 8 coexisting queens

Vyxal, 9 bytes ×»∇ḂẆ»f꘍§ Try it Online! Uses spaces for empty and asterisks for queen. Add a › at the end to replace spaces with zeros. ×»∇ḂẆ»f꘍§ »∇ḂẆ»f # 13572064 as a list of digits × ...

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

Answer
60%
+1 −0
Challenges The holeyest base

Vyxal, 19 18 bytes 16Ḣλ»≤ṪḢ»3τ?nτİ∑;∴ Try it Online! The link goes to a program which has every test case. -1 thanks to Steffan Explained (old) 16Ḣλ?$τ»≤ṪḢ»3τ$İ∑;O 16Ḣ # Th...

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

Answer
71%
+3 −0
Challenges The holeyest base

Given a positive integer as input, indicate which base from 2 to 16 gives the most holes in the representation of the input in that base. The digits used are 0123456789ABCDEF. Note that these incl...

6 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by Razetime‭

Question code-golf base
60%
+1 −0
Challenges 8 coexisting queens

J, 20 bytes '01'{~#:2^2842 A.i.8 Attempt This Online! Non-tacit program that outputs implicitly in a REPL. Shoutout to Raul (Miller)#5220 in the APL farm discord for thinking of this cool idea...

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

Answer
60%
+1 −0
Meta What would this community like to see in a Codidact API?

I'd like to post king-of-the-hill contests that read code directly from answers Essentials This is the only feature I would need in order to start posting contests. The answer content for each...

posted 1y ago by trichoplax‭

Answer
71%
+3 −0
Challenges 8 coexisting queens

JavaScript, 48 bytes _=>[..."41506372"].map(x=>1e8/9+10**x|0).join` ` Try it online! The string "41506372" encodes the position of the queen in each row. 1e8/9 gives 11111111.1111......

posted 1y ago by m90‭

Answer
60%
+1 −0
Meta What would this community like to see in a Codidact API?

I've now posted on Codidact Meta How should a Codidact public API work? I'll still be taking into account any discussion here if you have Code Golf specific thoughts, but for general API discussio...

1 answer  ·  posted 1y ago by trichoplax‭  ·  edited 9mo ago by trichoplax‭

Question discussion
71%
+3 −0
Challenges 8 coexisting queens

This is a fixed output challenge. Output a textual representation of a chessboard hosting 8 queens, none of which are attacking each other. There are 92 ways of arranging them, 12 if rotations and...

5 answers  ·  posted 1y ago by trichoplax‭  ·  last activity 1y ago by m90‭

50%
+0 −0
Sandbox Knight safe squares [FINALIZED]

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

40%
+0 −1
Q&A how to remove error? [closed]

This is my code to create navigation bar import './App.css'; import{ BrowserRouter, Routes, //replaces "Swiutch" used till v5 Route, }from "react-router-dom"; import Footer from "./...

0 answers  ·  posted 1y ago by LSHpqr‭  ·  closed 1y ago by Mithical‭

Question #react.js
60%
+1 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Python 3, 325 322 bytes -3 bytes thanks to steffan153‭! from base64 import* n=int.from_bytes(b85decode('8C^#Z9Uor=^}*nk`yLA}A<z=aTm_V+z!I{Y1+v7z89f>WmC>M4TN(sPp`fvySOeqafPpzk0!*=hK2{h9D...

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

Answer
60%
+1 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Python 3, 326 bytes print("fig gấc abiu açaí bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal ...

posted 1y ago by steffan153‭

Answer