how much time is taken by left shift or right shift operator
a<<b
where a<10^9 and b<10^6
Time taken by left shift operator
Hi @archit_828
You can check the exact time taken by printing time difference of your machine before and after the operation using “time” built-in function
If you want to go into the details, go through the below link.
what is time complexity i.e. it is O(1) or O(b) or O(log2(b))?