-
Notifications
You must be signed in to change notification settings - Fork 89
Added tasks 357, 363 #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added tasks 357, 363 #112
Conversation
import java.util.Arrays; | ||
|
||
public class Solution { | ||
private int[] M; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be not capital letter
import org.junit.jupiter.api.Test; | ||
|
||
class SolutionTest { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the empty line appear when I run 'gradlew.bat clean spotlessJavaApply test ' command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove empty line only before @test then format sources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the empty line appear when I run 'gradlew.bat clean spotlessJavaApply test ' command
I see other tests without empty line.
class SolutionTest { | ||
|
||
@Test | ||
void testCountNumbersWithUniqueDigits() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename method without test
class SolutionTest { | ||
|
||
@Test | ||
void testMaxSumSubMatrix() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename method without test
Please format sources before commit. |
I see @test without empty line. |
@@ -93,28 +94,28 @@ private int maxSumSubArray(int[] a, int k) { | |||
} | |||
|
|||
public int maxSumSubMatrix(int[][] matrix, int k) { | |||
int m = matrix.length; | |||
int n = m == 0 ? 0 : matrix[0].length; | |||
int x = matrix.length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better name variables localM and localN
Ok, let's leave it. |
Kudos, SonarCloud Quality Gate passed! |
LGTM |
No description provided.