Bitmask DP Problem

Правка en2, от pyetwi, 2021-02-12 22:18:29

Given a string a and b that consist of exactly the same characters, determine the minimum “cuts” required on string a such that it is possible to rearrange the segments of string a to match string b,

For instance, if a = “xxyyz” and b = “zxyxy”, the minimum cuts required on string a is 3

Illustration: x | xy | y | z --> z-xy-x-y

Constraints: |a| = |b| <= 20.

Time limit: 1 second

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский pyetwi 2021-02-12 22:24:55 0 (published)
en2 Английский pyetwi 2021-02-12 22:18:29 4 (saved to drafts)
en1 Английский pyetwi 2021-02-12 22:17:59 408 Initial revision (published)