HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Создуктор (Dictionary) > problem:


12. Word Break

Volume problems

• 04. Сoordinate quarters
• 05. Scrabble
• 06. Sort People
• 07. Find the Missing number
• 08. Бутун сандар массиви
• 09. Roman to integer
• 10. Тамгалардын комбинациясы
• 11. Создуктон минималдуу маанис...
• 12. Word Break
• 13. Элис менен Бобдун конфеттери
• 14. Жакшы жуп
• 15. Find Common Characters
• 16. Бириктирилген создук
• 17. Keyboard Row
• 18. Эки сандын суммасы
• 19. Goal Parser

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Difficulty Alpha

s  аттуу сап жана wordDict  сөздүгү берилди, эгер "s" тин мааниси  бир же бир нече сөздүктөгү
сөздүн боштук менен бөлүнгөн ырааттуулугуна бөлүү мүмкүн болсо, true кайтарылат.
Сөздүктөгү бир эле сөз сегменттөөдө бир нече жолу колдонулушу мүмкүн экенин эске алыңыз!

Given a string s and a dictionary of strings wordDict, return true if s can be segmented
into a space-separated sequence of one or more dictionary words.
Note that the same word in the dictionary may be reused multiple times in the segmentation

Example 1:
Input: s = "leetcode", wordDict = ["leet","code"]
Output: true

Example 2:
Input s = "catsandog", wordDict = ["cats","dog","sand","and","cat"]
Output: false

Для отправки решений необходимо выполнить вход.

www.contester.ru