Estimate time complexity of randomized algorithm

Revision en1, by aman_naughty, 2019-03-18 21:57:27

Problem : problem

Code :

code

. I want to know the time complexity of my algorithm. Although it runs within 16 ms on leetcode but is it really O(n) time and O(1) space??

Tags leetcode, #running time, #randomisation, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aman_naughty 2019-03-18 21:57:27 1029 Initial revision (published)