Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Help Required(DP Problem — palindromic substring)

Revision en1, by krishna12345, 2020-10-31 21:50:27

Problem — https://www.hackerrank.com/contests/all-india-contest-by-mission-helix-a-31-october/challenges/palindromic-query/problem

My solution — http://p.ip.fi/3RFY

Here i used dp approach (dp[i][j] where i = length of the substring , j = index of the substring ending with), passes all the sample test cases but getting segmentation fault in all the other test cases , Please look my code and tell my mistake.

Sorry for my bad english. Thank you .

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English krishna12345 2020-10-31 21:50:27 524 Initial revision (published)