Disjoint Set

Algorithmia Platform License

Run an Example

[
  [
    "1",
    "2",
    "3",
    "5",
    "7"
  ],
  [
    "a",
    "b",
    "c",
    "d"
  ]
]

Install & Use

Use

curl -X POST -d '[[1,2,3], [3, 5, 7], ["a", "b"], ["c", "d"], ["a","c"]]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/gabrielalmeida/DisjointSet/0.1.0