We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
I find this solution to be easy:
Sort(A) candidate = 1 for i from 1 to length(A): if A[i] > candidate: return candidate else: candidate = candidate + A[i] return candidate
First solution is crazy. 🔢 will look into it and let u know.
Sorry, something went wrong.
I can also understand this. The challenge is to do it in less than O(n lgn). O(n) solution needed
No branches or pull requests
Same problem??
The text was updated successfully, but these errors were encountered: