Skip to content

Added tasks 932, 933, 934, 935 #412

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
merged 2 commits into from
Feb 16, 2022
Merged

Conversation

ThanhNIT
Copy link
Contributor

No description provided.

void beautifulArray2() {
int[] result = new Solution().beautifulArray(5);
int[] expected = new int[] {3, 1, 2, 5, 4};
assertThat(CommonUtils.compareArray(result, expected), equalTo(true));
Copy link
Owner

@javadev javadev Feb 16, 2022

Choose a reason for hiding this comment

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

Do we need it? assertThat/equalTo can compare arrays.

Copy link
Contributor Author

@ThanhNIT ThanhNIT Feb 16, 2022

Choose a reason for hiding this comment

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

items in these array has not same order

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, let's use this method.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

98.1% 98.1% Coverage
0.0% 0.0% Duplication

@javadev
Copy link
Owner

javadev commented Feb 16, 2022

@javadev javadev merged commit 881a1e1 into javadev:main Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants