To check for the rotation count in a sorted array :
we can check the index of the least element :the index is the rotation count of the array.For example :[2,3,4,1]
index of 1 is 4, therefore rotation count is 4 to the right.
To count the digits in a factorial we must seek some optimization as you might also understand that getting all the product and storing the...
No comments:
Post a Comment