Skip to main content

9 docs tagged with "DP"

View all tags

Clone graph

This is a solution to the Clone graph problem on LeetCode.

Distinct SubSequence

Given two strings s and t, return the number of distinct subsequences of s which equals t. The test cases are generated so that the answer fits on a 32-bit signed integer.

Gas Station

This is a solution to the Gas station problem on LeetCode.