Kaynağa Gözat

need to do powerset still

Demetrius Murray 6 yıl önce
ebeveyn
işleme
7a375b440b

+ 1
- 0
src/main/java/rocks/zipcode/io/quiz4/collections/ComparableTreeSet.java Dosyayı Görüntüle

@@ -7,6 +7,7 @@ import java.util.*;
7 7
  */
8 8
 public class ComparableTreeSet<_ extends Comparable<_>> extends TreeSet<_> implements Comparable<ComparableTreeSet<_>>{
9 9
 
10
+
10 11
     public ComparableTreeSet(_... arr) {
11 12
         super(Arrays.asList(arr));
12 13
     }

+ 3
- 1
src/main/java/rocks/zipcode/io/quiz4/generics/GenericUtils.java Dosyayı Görüntüle

@@ -8,7 +8,9 @@ import java.util.TreeSet;
8 8
  * @author leon on 11/12/2018.
9 9
  */
10 10
 public class GenericUtils {
11
-
11
+    //looks like set within a set
12
+    //outer set is ordered lexigraphically
13
+    //inner set is ordered reverse lixigraphically
12 14
 
13 15
     public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(Set<_> originalSet) {
14 16
         return null;