Word Break
Medium
Dynamic Programming
Given a string s and a dictionary of words, print true if s can be segmented into a space-separated sequence of one or more dictionary words (words may be reused).
Constraints
1 <= len(s) <= 300 1 <= d <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.