Skip to content

Conversation

ThanhNIT
Copy link
Contributor

@ThanhNIT ThanhNIT commented Jan 3, 2022

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 3, 2022


**Output:** [null, [1, 0], [2, 0], [0, 0], null, [2, 0]]

**Explanation:** Solution solution = new Solution(3, 1); solution.flip(); // return [1, 0], [0,0], [1,0], and [2,0] should be equally likely to be returned. solution.flip(); // return [2, 0], Since [1,0] was returned, [2,0] and [0,0] solution.flip(); // return [0, 0], Based on the previously returned indices, only [0,0] can be returned. solution.reset(); // All the values are reset to 0 and can be returned. solution.flip(); // return [2, 0], [0,0], [1,0], and [2,0] should be equally likely to be returned.
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 a multi line block.

@javadev
Copy link
Owner

javadev commented Jan 3, 2022

@javadev javadev merged commit e150d47 into javadev:main Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants