29 |
|
* @key randomness |
30 |
|
*/ |
31 |
|
|
32 |
< |
import java.util.*; |
32 |
> |
import java.util.ArrayList; |
33 |
> |
import java.util.Collections; |
34 |
> |
import java.util.HashSet; |
35 |
> |
import java.util.List; |
36 |
> |
import java.util.Random; |
37 |
|
|
38 |
|
public class Disjoint { |
39 |
|
static final int N = 20; |
40 |
|
|
41 |
< |
public static void main(String args[]) { |
41 |
> |
public static void main(String[] args) { |
42 |
|
// Make an array of lists each of which shares a single element |
43 |
|
// with its "neighbors," and no elements with other lists in the array |
44 |
|
Random rnd = new Random(); |