How many characters can a Java String have?

后端 未结 7 1934
暗喜
暗喜 2020-11-22 06:56

I\'m trying The Next Palindrome problem from Sphere Online Judge (SPOJ) where I need to find a palindrome for a integer of up to a million digits. I thought about using Java

相关标签:
7条回答
  • 2020-11-22 07:31

    Integer.MAX_VALUE is max size of string + depends of your memory size but the Problem on sphere's online judge you don't have to use those functions

    0 讨论(0)
提交回复
热议问题