Skip to content

Commit

Permalink
Removed <>
Browse files Browse the repository at this point in the history
  • Loading branch information
RodneyShag committed Dec 23, 2019
1 parent d4a47cd commit 34a59ed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Algorithms/Sorting/Luck Balance/Solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int K = scan.nextInt();
ArrayList<Integer> contest = new ArrayList<>(N);
ArrayList<Integer> contest = new ArrayList(N);
int savedLuck = 0;
for (int i = 0; i < N; i++) {
int luck = scan.nextInt();
Expand Down
2 changes: 1 addition & 1 deletion Algorithms/Sorting/The Full Counting Sort/Solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args) throws IOException {
final int maxValue = 100;

/* Create HashMap with empty "buckets" to put Strings into */
HashMap<Integer, ArrayList<String>> map = new HashMap<>(maxValue);
HashMap<Integer, ArrayList<String>> map = new HashMap(maxValue);
for (int i = 0; i < maxValue; i++) {
map.put(i, new ArrayList<String>());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// 2) maxHeap.size() - 1 = minHeap.size()

public class Solution {
private static PriorityQueue<Integer> maxHeap = new PriorityQueue<>(Collections.reverseOrder()); // keeps track of the SMALL numbers
private static PriorityQueue<Integer> maxHeap = new PriorityQueue(Collections.reverseOrder()); // keeps track of the SMALL numbers
private static PriorityQueue<Integer> minHeap = new PriorityQueue(); // keeps track of the LARGE numbers

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// 2) maxHeap.size() - 1 = minHeap.size()

public class Solution {
private static PriorityQueue<Integer> maxHeap = new PriorityQueue<>(Collections.reverseOrder()); // keeps track of the SMALL numbers
private static PriorityQueue<Integer> maxHeap = new PriorityQueue(Collections.reverseOrder()); // keeps track of the SMALL numbers
private static PriorityQueue<Integer> minHeap = new PriorityQueue(); // keeps track of the LARGE numbers

public static void main(String[] args) {
Expand Down
2 changes: 1 addition & 1 deletion Java/Advanced/Java Visitor Pattern/Solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static Tree solve() {
/* Save nodes and colors */
values = new int[numNodes];
colors = new Color[numNodes];
map = new HashMap<>(numNodes);
map = new HashMap(numNodes);
for (int i = 0; i < numNodes; i++) {
values[i] = scan.nextInt();
}
Expand Down
2 changes: 1 addition & 1 deletion Java/Data Structures/Java Hashset/Solution.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static void main(String[] args) {
}
s.close();

HashSet<String> set = new HashSet<>(t);
HashSet<String> set = new HashSet(t);
for (int i = 0; i < t; i++) {
set.add(pair_left[i] + " " + pair_right[i]);
System.out.println(set.size());
Expand Down

0 comments on commit 34a59ed

Please sign in to comment.