LeetCode 115: Distinct Subsequences — Step-by-Step Visual Trace

📰 Dev.to · tracelit

Given two strings s and t, return the number of distinct subsequences of s which equals t. A subsequence is formed by deleting some characters without changing the relative order of remaining characters.

Published 9 Apr 2026
Read full article → ← Back to Reads