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 927, 928, 929, 930, 931 #409

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 5 commits into javadev:main from ThanhNIT:tasks-927-928-929-930-931
Feb 16, 2022

Conversation

Copy link
Contributor

@ThanhNIT ThanhNIT commented Feb 16, 2022

No description provided.

Copy link
Owner

javadev commented Feb 16, 2022

Please fix style errors

Error: src/main/java/g0901_1000/s0931_minimum_falling_path_sum/Solution.java:[6,42] (naming) ParameterName: Name 'A' must match pattern '^[a-z][a-zA-Z0-9]*$'.
Error: src/main/java/g0901_1000/s0928_minimize_malware_spread_ii/Solution.java:[30] (blocks) NeedBraces: 'if' construct must use '{}'s.

[**1,0,1**,0,1]
[**1,0,1,0**,1]
[1,**0,1,0,1**]
[1,0,**1,0,1**]
Copy link
Owner

Choose a reason for hiding this comment

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

We need to find a way how to use bold in code blocks.

@@ -3,13 +3,13 @@
// #Medium #Array #Dynamic_Programming #Matrix

public class Solution {
public int minFallingPathSum(int[][] A) {
int size = A.length;
public int minFallingPathSum(int[][] a) {
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 a with matrix. minFallingPathSum(int[][] matrix)

if (!adj.containsKey(i)) {
adj.put(i, new ArrayList<Integer>());
}
adj.computeIfAbsent(i, k -> new ArrayList<>());
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 putIfAbsent method.

Copy link
Owner

javadev commented Feb 16, 2022

Copy link

@javadev javadev merged commit b12e684 into javadev:main Feb 16, 2022
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 によって変換されたページ (->オリジナル) /