¡@

Home 

c++ Programming Glossary: numfound

How many palindromes can be formed by selections of characters from a string?

http://stackoverflow.com/questions/2033903/how-many-palindromes-can-be-formed-by-selections-of-characters-from-a-string

to hold the solution. #define MAX_SIZE 1000 long long numFound MAX_SIZE MAX_SIZE intermediate results indexed by startPosition.. startPos len startPos for int endPos 0 endPos len endPos numFound startPos endPos 0 for int spanSize 1 spanSize len spanSize for.. startPos int endPos startPos spanSize long long count numFound startPos 1 endPos if str startPos is not in the palindrome this..