c++ Programming Glossary: foundlength
To find the longest substring with equal sum in left and right in C++ http://stackoverflow.com/questions/8469407/to-find-the-longest-substring-with-equal-sum-in-left-and-right-in-c print 0. int getEqualSumSubstring string s int i 0 j i foundLength 0 for i 0 i s.length i for j i j s.length j int temp j i if.. k temp 2 '0' if leftSum rightSum leftSum 0 if s.length foundLength foundLength s.length return foundLength The problem is that.. if leftSum rightSum leftSum 0 if s.length foundLength foundLength s.length return foundLength The problem is that this code..
|