What is the complexity of this code ?

Правка en1, от SPyofgame, 2020-12-04 04:14:18

I was solving a problem that need to find the minimum distance between two points. I tried to bruteforce then cde an divide and conquer algorithm. But then I modified the bruteforce by adding some branch-and-bound to ignore not-optimal cases. For somehow my code get AC and seems to run fast while I thought it will be slow with the complexity of $$$O(n^2)$$$ with small constant.

I dont really sure about the complexity, can some one help me to calculate it ?

My main part
My full code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский SPyofgame 2020-12-04 04:18:26 391
en1 Английский SPyofgame 2020-12-04 04:14:18 4479 Initial revision (published)