Counting Perfect Subsequences

  • + 0 comments

    Spent an hour trying to figure out what was wrong with my modDivide function... Noticed I was using ab += abc in main loop. Changed to a = (a + abc) % mod. Passed all test cases. ;_;