anyone knows how to execute the function (x power n) in O(log n)
and it has to be in iteration .
bobi1234 0 Newbie Poster
Recommended Answers
Jump to PostActually it's impossible, if you're using integers, because the size of the solution is n*log_2(x) + O(1).
All 3 Replies
Rashakil Fol 978 Super Senior Demiposter Team Colleague
neilcoffey 79 Junior Poster in Training
bobi1234 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.