Estimate time complexity of randomized algorithm

Правка en1, от 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??

Теги leetcode, #running time, #randomisation, #help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский aman_naughty 2019-03-18 21:57:27 1029 Initial revision (published)