Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
javadev merged 7 commits into javadev:main from ThanhNIT:tasks-357-363
Dec 14, 2021
Merged

Added tasks 357, 363 #112

javadev merged 7 commits into javadev:main from ThanhNIT:tasks-357-363
Dec 14, 2021

Conversation

Copy link
Contributor

@ThanhNIT ThanhNIT commented Dec 14, 2021

No description provided.

import java.util.Arrays;

public class Solution {
private int[] M;
Copy link
Owner

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 {

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty line

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
I think we need to add the empty line to pass the check

Copy link
Owner

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

Copy link
Owner

@javadev javadev Dec 14, 2021
edited
Loading

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() {
Copy link
Owner

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() {
Copy link
Owner

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

Copy link
Owner

javadev commented Dec 14, 2021

Please format sources before commit.

Copy link
Owner

javadev commented Dec 14, 2021

Copy link
Owner

javadev commented Dec 14, 2021

Copy link
Owner

javadev commented Dec 14, 2021

I see @test without empty line.
Screenshot_20211214-033104

Copy link
Owner

javadev commented Dec 14, 2021

Please remove empty line market yellow color.
Screenshot_20211214-033336

Copy link
Contributor Author

Please remove empty line market yellow color. Screenshot_20211214-033336

It appear when I run command "gradlew.bat clean spotlessJavaApply test --info". if remove we will not pass the checks

@@ -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;
Copy link
Owner

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

Copy link
Owner

javadev commented Dec 14, 2021

Please remove this line.
Screenshot_20211214-033953

Copy link
Owner

javadev commented Dec 14, 2021

Ok, let's leave it.

Copy link

Copy link
Owner

javadev commented Dec 14, 2021

LGTM

@javadev javadev merged commit dad4db8 into javadev:main Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@javadev javadev javadev left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /