Day 35 of LeetCode
Took a 2-day break. πΆβπ«οΈ
Documenting LeetCode solving.
Q103
139. Word Break
Medium. 1D DP.
class Solution {
public boolean wordBreak(String s, List<String> wordDict) {
// e.g. "leetcode"
int[] dp = new int[s.length() + 1];
...
evelynsjourney.hashnode.dev2 min read