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
A doubt about question No.74 #136
Comments
Do you have an example where this fails? |
A counterexample is like [2,1,1,1,1,1,1]
We can see [2,1,1,1,1,1,1,1] is not equal to [1,1,1,1,1,1,1,2],we get the wrong answer.
|
Thanks for the ifnromation. We could simply add |
It`s my pleasure :) |
Thanks, merged. |
The given answer is shown as below.
C = np.bincount([1,1,2,3,4,4,6]) A = np.repeat(np.arange(len(C)), C) print(A)
There maybe a problem with the description of question No.74,the answer given can only solve the problem of Non-strictly increasing 1-d array not for all kind of 1-d array.
The text was updated successfully, but these errors were encountered: