Skip to content

Added _973.java #32

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 1 commit into from
Jan 13, 2019
Merged

Added _973.java #32

merged 1 commit into from
Jan 13, 2019

Conversation

varunu28
Copy link
Contributor

@varunu28 varunu28 commented Jan 13, 2019

  • Added code
  • Added test case
  • Updated README


@Test
public void test1() {
assertArrayEquals(new int[][]{{-2,2}}, test.kClosest(new int[][]{{1,3}, {-2,2}}, 1));
Copy link
Owner

Choose a reason for hiding this comment

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

Nit: could you add space in between each element? Otherwise build/checkstyle will fail.
e.g. change int[][]{{-2,2}} to int[][]{{-2, 2}}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


@Test
public void test2() {
assertArrayEquals(new int[][]{{3,3},{-2,4}}, test.kClosest(new int[][]{{3,3},{5,-1},{-2,4}}, 2));
Copy link
Owner

Choose a reason for hiding this comment

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

So is here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Added _973.java
@fishercoder1534 fishercoder1534 merged commit de46123 into fishercoder1534:master Jan 13, 2019
fishercoder1534 pushed a commit that referenced this pull request Jun 6, 2019
Added _973.java
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