diff --git a/src/main/java/io/github/spannm/leetcode/lc1/lc1200/Problem1244.java b/src/main/java/io/github/spannm/leetcode/lc1/lc1200/Problem1244.java index 632f0732..37a38804 100644 --- a/src/main/java/io/github/spannm/leetcode/lc1/lc1200/Problem1244.java +++ b/src/main/java/io/github/spannm/leetcode/lc1/lc1200/Problem1244.java @@ -9,8 +9,8 @@ class Problem1244 extends LeetcodeProblem { static class Leaderboard { - private final Map d = new HashMap<>(); - private final TreeMap rank = new TreeMap<>((a, b) -> b - a); + private final Map d = new HashMap<>(); + private final Map rank = new TreeMap<>((a, b) -> b - a); Leaderboard() { } diff --git a/src/main/java/io/github/spannm/leetcode/lc1/lc1500/Problem1500.java b/src/main/java/io/github/spannm/leetcode/lc1/lc1500/Problem1500.java index 7ce09b6d..42bcad4f 100644 --- a/src/main/java/io/github/spannm/leetcode/lc1/lc1500/Problem1500.java +++ b/src/main/java/io/github/spannm/leetcode/lc1/lc1500/Problem1500.java @@ -7,10 +7,10 @@ class Problem1500 extends LeetcodeProblem { static class FileSharing { - private final int chunks; - private int cur; - private final TreeSet reused; - private final TreeMap> userChunks; + private final int chunks; + private int cur; + private final TreeSet reused; + private final Map> userChunks; FileSharing(int _m) { chunks = _m; diff --git a/src/main/java/io/github/spannm/leetcode/lc1/lc1600/Problem1656.java b/src/main/java/io/github/spannm/leetcode/lc1/lc1600/Problem1656.java index 1b5ca150..6b6a2a79 100644 --- a/src/main/java/io/github/spannm/leetcode/lc1/lc1600/Problem1656.java +++ b/src/main/java/io/github/spannm/leetcode/lc1/lc1600/Problem1656.java @@ -4,14 +4,15 @@ import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.TreeMap; class Problem1656 extends LeetcodeProblem { static class OrderedStream { - private final TreeMap map; - private int ptr; - private final int limit; + private final Map map; + private int ptr; + private final int limit; OrderedStream(int _n) { map = new TreeMap<>(); diff --git a/src/main/java/io/github/spannm/leetcode/lc2/lc2500/Problem2502.java b/src/main/java/io/github/spannm/leetcode/lc2/lc2500/Problem2502.java index 96213dc7..62eed366 100644 --- a/src/main/java/io/github/spannm/leetcode/lc2/lc2500/Problem2502.java +++ b/src/main/java/io/github/spannm/leetcode/lc2/lc2500/Problem2502.java @@ -7,7 +7,7 @@ class Problem2502 extends LeetcodeProblem { static class Allocator { - private final TreeMap tm = new TreeMap<>(); + private final Map tm = new TreeMap<>(); private final Map> d = new HashMap<>(); Allocator(int n) {