This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingCount how many ways the first string contains the second as a subsequence.
What this asks
Count how many ways the first string contains the second as a subsequence.
Match takes the diagonal plus the skip count; mismatch copies from above.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing