We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c038b02 commit bc3f9fdCopy full SHA for bc3f9fd
src/main/java/com/fishercoder/solutions/_1354.java
@@ -46,7 +46,7 @@ public static class Solution1 {
46
*/
47
public boolean isPossible(int[] target) {
48
PriorityQueue<Long> pq = new PriorityQueue<>(Collections.reverseOrder());
49
- long sum = 0l;
+ long sum = 0L;
50
for (int v : target) {
51
sum += v;
52
pq.offer((long) v);
0 commit comments