0 0 votes Algorithms + – Shubham Aggarwal 450 views answer comment Share Follow Print See 1 comment 1 1 comment reply Abhisek Tiwari 4 commented Dec 27, 2018 reply Follow flag logn e.g y= 5^24 it can be done in x=5 while(x<y) x=x*x then linear search till x!=y so 5,5^2,5^4,5,5^8,5^16 5^32 but it is larger hence after 5^16 linear search. 1 1 replyShare Please log in or register to add a comment.