Skip to content

Commit

Permalink
Updated spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev authored May 4, 2024
1 parent cacab6a commit b74c097
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.12.0'
id 'com.diffplug.spotless' version '6.25.0'
id 'org.sonarqube' version '5.0.0.4638'
id 'jacoco'
}
Expand Down Expand Up @@ -54,7 +54,7 @@ spotless {
}
importOrder '\\#', '', '*'
removeUnusedImports()
googleJavaFormat('1.15.0').aosp()
googleJavaFormat('1.22.0').aosp()
toggleOffOn()
endWithNewline()
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com_github_leetcode/Employee.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
public class Employee {
/** It's the unique id of each node; unique id of this employee */
public int id;

/** the importance value of this employee */
public int importance;

/** the id of direct subordinates */
public List<Integer> subordinates;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
public class MyQueue {
private Deque<Integer> left;
private Deque<Integer> right;

// Initialize your data structure here.
public MyQueue() {
left = new ArrayDeque<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void update(int i, int v) {
bit[i] += v;
}
}

// prefix sum query
private int ps(int j) {
int ps = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Solution {
{{0, -1}, {-1, 0}},
{{0, 1}, {-1, 0}}
};

// the idea is you need to check port direction match, you can go to next cell and check whether
// you can come back.
public boolean hasValidPath(int[][] grid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class Solution {
private int ans = 0;

public int maximumRows(int[][] matrix, int numSelect) {
dfs(matrix, /*colIndex=*/ 0, numSelect, /*mask=*/ 0);
dfs(matrix, /* colIndex= */ 0, numSelect, /* mask= */ 0);
return ans;
}

Expand Down

0 comments on commit b74c097

Please sign in to comment.