Closed back-2-hack closed 1 year ago
Hi @back-2-hack
Thank you very much for the PR :)
After a quick look at your changes, I think your solution will get timeouts, since it looks like a O(n^2) solution to me, while the one I have is O(n log n). Did your solution pass all the test cases from the certification exam?
Yes it passed all the test cases from exam !
Hi @back-2-hack,
I had another look at your PR and I agree that the code correctly solves the problem, but it actually has O(n^2 log(n)) complexity while the current solution has O(n log(n)) complexity.
So I'll close this PR, but still thank you for your contribution :)
Cheers
Yup, this is a verified code !