Skip to content

Conversation

ThanhNIT
Copy link
Contributor

No description provided.

}
}

/**
Copy link
Owner

Choose a reason for hiding this comment

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

Please not use javadoc comments to avoid reformatting block.


**Example 1:**

**Input** \["RandomizedSet", "insert", "remove", "insert", "getRandom", "remove", "insert", "getRandom"\] \[\[\], \[1\], \[2\], \[2\], \[\], \[1\], \[2\], \[\]\]
Copy link
Owner

Choose a reason for hiding this comment

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

It looks like multiline block.


class RandomizedSetTest {
@Test
void RandomizedSet() {
Copy link
Owner

Choose a reason for hiding this comment

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

Please name method from non capital letter.


// #Easy #Binary_Search #Interactive

/**
Copy link
Owner

Choose a reason for hiding this comment

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

Please not use javadoc comments.

return true;
}

/** Removes a value from the set. Returns true if the set contained the specified element. */
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 a simple comment, not javadoc.


/** Initialize your data structure here. */
public RandomizedSet() {
this.rand = new Random();
Copy link
Owner

Choose a reason for hiding this comment

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

image

@sonarqubecloud
Copy link

@javadev
Copy link
Owner

javadev commented Dec 17, 2021

👍

@javadev javadev merged commit 909f90b into javadev:main Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants