|
|
вернуться в форумCould anyone EXPLAIN his/her solution of this problem? (i know how it can be solved) Re: Could anyone EXPLAIN his/her solution of this problem? (i know how it can be solved) well the way i thought is simply calculate the number and see but before using numbers i used long's and calculated it %10000 and that was enough i used the writing in binar of the number n to calculate it in logn My solution is O(1) I found the period. Re: Could anyone EXPLAIN his/her solution of this problem? (i know how it can be solved) yes...no need for crazy calculations...just check out the answers for some numbers and u'll see how easy this problem is.. Re: My solution is O(1) I don't think it is eas to find the period. Re: My solution is O(1) display the situation of n: 1- 100 ? Re: My solution is O(1) 1 - 30 is enough actually Re: Could anyone EXPLAIN his/her solution of this problem? (i know how it can be solved) |
|
|