Time complexity of sampling algorithm

Hey! Could anyone let me know the time complexity of the sampling algorithm defined here?



Thank you for your question. Unfortunately I don’t have an answer but you could calculate it using the time library. You can find an example of how to use it here.

I hope this can help you find the answer to your question.