0

What's the differences between n/2 and n*.5? Is there any impact on the execution speed?

Thanks in advance

4th Jul 2021, 5:04 PM
Pemadam
3 odpowiedzi
+ 1
A.S. Oh really? I thought division requires more operation than multiplication...
4th Jul 2021, 5:16 PM
Pemadam
0
I don't think it's matters too becz in both way calculation will be equal if u talking about time complexity then it will be same .
4th Jul 2021, 5:14 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
4th Jul 2021, 5:17 PM
A S Raghuvanshi
A S Raghuvanshi - avatar