You are viewing a single comment's thread. Return to all comments →
I didn't know this. Thank you. But here is something I read.
https://stackoverflow.com/a/1963514
So, in a worst case scenario, the operation may be O(n). This makes the python implementation solution O(n^2).
Count Triplets
You are viewing a single comment's thread. Return to all comments →
I didn't know this. Thank you. But here is something I read.
https://stackoverflow.com/a/1963514
So, in a worst case scenario, the operation may be O(n). This makes the python implementation solution O(n^2).