Skip to main content
Commonmark migration
Source Link

#Mathematica 14 12 bytes

Mathematica 14 12 bytes

Since built-ins are allowed, this should do it.

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

#Mathematica 14 12 bytes

Since built-ins are allowed, this should do it.

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

Mathematica 14 12 bytes

Since built-ins are allowed, this should do it.

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

deleted 47 characters in body
Source Link
DavidC
  • 25.4k
  • 2
  • 52
  • 105

#Mathematica 14 12 bytes

Since built-ins are allowed, this should do it. (I'm not sure the brackets need to be counted.)

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

#Mathematica 14 12 bytes

Since built-ins are allowed, this should do it. (I'm not sure the brackets need to be counted.)

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

#Mathematica 14 12 bytes

Since built-ins are allowed, this should do it.

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

added 8 characters in body
Source Link
DavidC
  • 25.4k
  • 2
  • 52
  • 105

#Mathematica 1414 12 bytes

Since built-ins are allowed, this should do it. (I'm not sure the brackets need to be counted.)

FindClusters[]FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

#Mathematica 14 bytes

Since built-ins are allowed, this should do it. (I'm not sure the brackets need to be counted.)

FindClusters[]

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

#Mathematica 14 12 bytes

Since built-ins are allowed, this should do it. (I'm not sure the brackets need to be counted.)

FindClusters

Example

FindClusters[{{4, 8}, {15, 16}, {23, 42}, {-13.37, -12.1}, {666, -666}}, 3]

{{{4, 8}, {-13.37, -12.1}}, {{15, 16}, {23, 42}}, {{666, -666}}}

Source Link
DavidC
  • 25.4k
  • 2
  • 52
  • 105
Loading