« first day (1077 days earlier)      last day (1782 days later) » 

3:37 PM
how to convert a C array into std::array?
I have a std::size_t sizes[4] as a member and I need to return an std::array by value
 
 
5 hours later…
8:46 PM
i am solving this problem
i am using BFS
but it is saying time limit exceed
if you want to see me solution
* my solution
 
For this problem - https://www.spoj.com/problems/PALIN/
My idea is to generate numbers by adding 1 until we hit a palindrome.
But, the input size limit is huge, we can't use any data type available and we need to use string. But I'm out of an idea in finding out the next number when we store it in a string.
Can anyone help me?
 
9:02 PM
@taritgoswami
3
Q: SPOJ: PALIN - The Next Palindrome: wrong output

Arvind RamaduraiHere is the code for "The Next Palindrome" which I wrote in C: #include<stdio.h> int main(void) { int check(int); //function declaration int t,i,k[1000],flag,n; scanf("%d",&t); //test cases for(i=0; i<t; i++) scanf("%d",&k[i]); //numbers for(i=0; i<t; i++) { ...

i have not solve but this can help
 
@sunil Thanks
 
1
Q: The Next Palindrome SPOJ

user3045438I have written a brute force solution for this next palindrome problem and wanted to get Time Limit Exceeded . But when i tested a few test cases it works properly but when i submit the code in spoj i get wrong answer. Here is my code . Please can someone help me to figure out what is wrong in th...

check this also
:)
 
All have the issue with limit and none of them have answered how to implement it(the last list mentioned to use string as a hint).
 
i am sorry @taritgoswami
 
np :)
 

« first day (1077 days earlier)      last day (1782 days later) »