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 2144, 2145, 2146, 2147, 2148 #1073

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 2 commits into javadev:main from ThanhNIT:tasks-2144-2145-21466-2147-2148
Jun 7, 2022

Conversation

@ThanhNIT
Copy link
Contributor

@ThanhNIT ThanhNIT commented Jun 7, 2022

No description provided.

package g2101_2200.s2145_count_the_hidden_sequences;

class Solution {
public int numberOfArrays(int[] diff, int lower, int upper) {
Copy link
Owner

@javadev javadev Jun 7, 2022

Choose a reason for hiding this comment

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

Please add tags and public.

ThanhNIT reacted with thumbs up emoji

if (low > high) return 0;
int count = (high - low) + 1;

Copy link
Owner

@javadev javadev Jun 7, 2022

Choose a reason for hiding this comment

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

Please remove empty lines.

ThanhNIT reacted with thumbs up emoji
Copy link
Owner

@javadev javadev Jun 7, 2022

Choose a reason for hiding this comment

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

Immediately return this expression instead of assigning it to the temporary variable "count".

Copy link
Owner

javadev commented Jun 7, 2022

Please try to update readme with tasks list.

ThanhNIT reacted with thumbs up emoji

Copy link

sonarqubecloud bot commented Jun 7, 2022

Copy link
Owner

javadev commented Jun 7, 2022

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