Write a program to find (x^y) % z
Anonymous
I guess the point is how to avoid overflow. Good algorithms for this does not lead to overflow and return the correct answer; normal ones may easily lead to overflow.
Check out your Company Bowl for anonymous work chats.