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 23290

The challenge involves mathematics in some central way. Also consider using more specific tags, listed in the tag wiki info.

1 vote

Simpson diversity index

J, 37 bytes (1-([:+/]*<:)%+/*[:<:+/)([:+/"1~.=/]) but I believe it can be still shortened. Example (1-([:+/]*<:)%+/*[:<:+/)([:+/"1~.=/]) 'AAABBC' This is just a tacit version of the following f …
gar's user avatar
  • 161
1 vote

The rice and chess problem

J, 17 bytes A non-tacit solution, by defining a dyad: f=:4 :'+/y^i.x^2' e.g. 8x f 2 18446744073709551615
gar's user avatar
  • 161