Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 113442

Code-golf is a competition to solve a particular problem in the fewest bytes of source code.

22 votes
13 answers
3k views

Turn Two Dice Into One

A neat trick is if you ever need a nine-sided die, it is possible to make one using two six-sided dice using the numbers below. This is assuming you either have a way to rewrite the faces on the dice, …
rtrb's user avatar
  • 381
6 votes

Find the smallest triangle encompassing the specified polygon

Python 3.9.12: 588 585 583 580 578 572 bytes 3 bytes saved thanks to Jiří, and 2 bytes saved thanks to clarification from att! from numpy import* from itertools import* def J(V): c,a,X,I=combinations …
rtrb's user avatar
  • 381