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 1314e8d commit 9affc56Copy full SHA for 9affc56
src/main/java/com/fishercoder/solutions/_229.java
@@ -61,10 +61,10 @@ public List<Integer> majorityElement(int[] nums) {
61
count2++;
62
}
63
64
- if (count1 > nums.length/3) {
+ if (count1 > nums.length / 3) {
65
result.add(candidate1);
66
67
- if (count2 > nums.length/3) {
+ if (count2 > nums.length / 3) {
68
result.add(candidate2);
69
70
return result;
0 commit comments