the time complexity of brute force solution of gcd of two number is O(min(a,b)) cant it be 1

前端 未结 0 1691
时光说笑
时光说笑 2021-01-16 14:39

when we use brute force to find gcd of two number (10,15) why is the time complexity O(min(a,b)) when both the numbers are same i have to run to half of it because gcd cant

相关标签:
回答
  • 消灭零回复
提交回复
热议问题