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

add solution 146 with java #50

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
yanglbme merged 5 commits into doocs:master from zhng1456:dev
Oct 23, 2018
Merged

add solution 146 with java #50

yanglbme merged 5 commits into doocs:master from zhng1456:dev
Oct 23, 2018

Conversation

@zhng1456
Copy link
Contributor

@zhng1456 zhng1456 commented Oct 23, 2018

add solution 146 with java

@yanglbme yanglbme self-requested a review October 23, 2018 07:22
Copy link
Member

@yanglbme yanglbme left a comment
edited
Loading

Choose a reason for hiding this comment

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

哈喽,有几个小地方

文件请规范命名

  • Java 里 文件名与类名保持一致,首字母大写
    e.g.
Solution.java
  • README 文件命名请按照 GitHub 规范,README 全大写
    e.g.
README.md

代码请规范书写

适当的空格是必要的
e.g.(不止这一处)

// 不规范的写法
Node newNode=new Node(key,value);
 //接下来要考虑容量
if(map.size()<capacity){
 setHead(newNode);
 map.put(key,newNode);
}
// 规范的写法
Node newNode = new Node(key, value);
 // 接下来要考虑容量
if (map.size() < capacity) {
 setHead(newNode);
 map.put(key, newNode);
}

不妨修改一下😄

@yanglbme yanglbme merged commit ecb45d1 into doocs:master Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@yanglbme yanglbme yanglbme left review comments

Labels

need optimization Improvement request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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