I see 2 potential problems.
2nd raw_input is surrounded by (), is it correct?
In if condition conversion to list is not required. Also instead of
converting to string u can take difference of number and reversed number.
U can use tools like http://www.pythontutor.com/visualize.html#mode=edit
For
Hi Kishor,
10^6 is upper limit n is not a huge value. Memory footprint won't be high
because we need to find only next palindrome number. Or if required for
loop should be replaced with incremental while loop.
Let me know ur thoughts.
Regards,
Nikhil
On 11 Nov 2014 22:11, "Kishor Bhat" wrote:
>
gits).
>
> Also, the extra parentheses around the second raw_input() is not
> necessary, but causes no errors.
>
> Regards,
> Kishor Bhat
>
> On Tue, Nov 11, 2014 at 10:31 PM, Nikhileshkumar Ikhar
> wrote:
> > Hi Kishor,
> > 10^6 is upper limit n is not a huge value
Python terminal on linux is sufficient.
But many people are fans of ipython and idle.
-Nikhil
On 20 November 2014 09:48, narayan naik wrote:
> Ya, am talking the same
> On 19 Nov 2014 18:49, "Martin Anto" wrote:
>
> > Simulator??
> >
> > You mean interpreter?
> > On Nov 19, 2014 2:48 PM, "nar
With 5000 choices, it is not a good design from performance n usability
point of view.
How many times these choices will be accessed? If frequently you have to
add them in cache n use ajax calls.
If not so frequently then you can go ahead with current design.
But i would suggest to use ajax calls