@Guneesh
But 0<=N , K<=1000 so N^N could be have 1000 digits. 

There is no direct upper bound on N, but there is an upper bound on K (i.e. 
K <= 1000).
And we need to check N^N == K, so N^N cant be more than 1000.

On Monday, June 11, 2012 1:56:13 PM UTC+5:30, Guneesh wrote:
>
> @abhisheikh read the problem statement again...it says 1000 digits not 
> 1000 value..
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/dswHt9ucfDEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to