Stack Exchange
log in
users (33)
rooms (34)
faq
Subbu
general
recent
conversations
The Whiteboard
General Discussion for
softwareengineering.stackexchange.com
P...
CodeJack
Apr 17, 2013 21:51
bye
CodeJack
Apr 17, 2013 21:51
anyways , leave it
CodeJack
Apr 17, 2013 21:51
i said , program works fine , but giving wrong answer when used on large number .
CodeJack
Apr 17, 2013 21:49
@JimmyHoffa , @MichaelT : bye Good night
CodeJack
Apr 17, 2013 21:48
i am leaving
CodeJack
Apr 17, 2013 21:48
I think , you will not help me regarding my output , you are just focusing on my coding error , not on algo ,
CodeJack
Apr 17, 2013 21:44
because , the same function is going to be used for odd number in which it may vary
CodeJack
Apr 17, 2013 21:42
what is the sideeffect sir ?/
CodeJack
Apr 17, 2013 21:37
edited...
CodeJack
Apr 17, 2013 21:36
ideone.com/PsDFh0
CodeJack
Apr 17, 2013 21:35
new code
CodeJack
Apr 17, 2013 21:17
have you understoood the logic of my code ??
CodeJack
Apr 17, 2013 21:17
@MichaelT : i am not gettin you..
CodeJack
Apr 17, 2013 21:16
tell me...which variables bug you ?
CodeJack
Apr 17, 2013 21:15
yes..is that wrong ??
CodeJack
Apr 17, 2013 21:14
they are just arguments , s stands for parameter of 'second'
CodeJack
Apr 17, 2013 21:13
ohhh
CodeJack
Apr 17, 2013 21:12
what is block quotes ??
CodeJack
Apr 17, 2013 21:12
but it is only of even right now
CodeJack
Apr 17, 2013 21:11
*when input is even
CodeJack
Apr 17, 2013 21:11
@MichaelT , @JimmyHoffa , code for next palindrome , when next input is given
ideone.com/PsDFh0
CodeJack
Apr 17, 2013 21:08
@mich
CodeJack
Apr 17, 2013 19:07
ok
CodeJack
Apr 17, 2013 19:05
sorry
CodeJack
Apr 17, 2013 19:01
@MichaelT , some readable updated for even numbers
ideone.com/qlP4eL
CodeJack
Apr 17, 2013 18:39
thanx
CodeJack
Apr 17, 2013 18:36
@JimmyHoffa : Sir , plz repeat the advice
CodeJack
Apr 17, 2013 18:33
even :497653 , 496753 , 497753 , 499953
CodeJack
Apr 17, 2013 18:32
34187 , 38947 , 38947 , 34987 , 39987 , 38997 , 39999 , 99999
CodeJack
Apr 17, 2013 18:31
odd : 38147
CodeJack
Apr 17, 2013 18:31
Sir , i can give different cases , have a look
CodeJack
Apr 17, 2013 18:28
Sir, if u want to know about a variable , ask me , i can tell about it
CodeJack
Apr 17, 2013 18:28
Sir , actually we earlier also , i spent 2 hours on removing redundant code...but i was unable to...right now..my goal is to make it give correct output...
CodeJack
Apr 17, 2013 18:25
it shows wrong answer ... why ??
CodeJack
Apr 17, 2013 18:24
spoj problem : next palindrome
CodeJack
Apr 17, 2013 18:24
PLEASE have a look at my code ...
ideone.com/N4NUVD
CodeJack
Apr 17, 2013 16:09
portal for programs challenging
CodeJack
Apr 17, 2013 16:08
sphere online judge
CodeJack
Apr 17, 2013 16:07
no sir...its a spoj problem
CodeJack
Apr 17, 2013 16:04
ok sir
CodeJack
Apr 17, 2013 16:04
i can post algo i have used
CodeJack
Apr 17, 2013 16:04
sir , i have spent two days on it...
CodeJack
Apr 17, 2013 16:01
Sorry sir .. but plz hellp
CodeJack
Apr 17, 2013 15:59
@JimmyHoffa : but why do u think it is problematic , it genearate correct output
CodeJack
Apr 17, 2013 15:54
i dont know
CodeJack
Apr 17, 2013 15:54
guys , i have used same approch why does spoj shoes it as a wrong answer ....
CodeJack
Apr 17, 2013 15:53
This is the code I have written :
pastebin.com/CKbf4rve
CodeJack
Apr 17, 2013 15:50
no . of 1011 it should be 1111
CodeJack
Apr 17, 2013 15:49
also , the condition is number can be 10000000 digits long
CodeJack
Apr 17, 2013 15:48
Sorry friends , here i did a mistake , instead of closest it should be next