hi,
i have solved next palindrome problem.
i am getting correct value for one input.
but for more test cases t,
i'm not getting how to allocate memory in starting as upper bound of t is not given in next palindrome question [color=#FF0000]http://www.spoj.pl/problems/PALIN/[/color]

should i use linked list or is some other way out for it. unamused
i'm rookie in programming .
please help

  • created

    Mar '10
  • last reply

    Mar '10
  • 1

    reply

  • 101

    views

  • 2

    users

  • 1

    link

You don't need to (and shouldn't) allocate memory to hold all test cases at once. Just output the result of each test case as you process it.

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 16 9d

Want to read more? Browse other topics in C and C++ or view latest topics.