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 10639

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

0 votes

Finding Local Extremes

APL, 19 bytes {⍵/⍨0,⍨0,0>2×/2-/⍵} I converted the 20 char J version to APL. But I add a zero to the beginning and the end instead of removing the first and last digit. Otherwise it works just like …
user10639's user avatar
7 votes

Code Golf Christmas Edition: How to print out a Christmas tree of height N

21 characters with dyalog APL. m,⍨⌽0 1↓m←↑'*'\¨⍨1,⍨⍳ ⍳ gives a vector of integers starting with 1. 1,⍨ adds a one to the end of the vector. This will be the foot of the tree. '*'\¨⍨ gives a vecto …
user10639's user avatar