You are given two strings skill of length station of length
There are skill[i]. There are station[j].
Each worker must be assigned to an available station such that:
The assigned indices form a strictly increasing sequence
station[p[i]] equals skill[i] for all
The gap between two adjacent assigned stations is
Return the maximum possible value of
Constraints:
skill.length
station.length
skill and station consist of lowercase English letters.
It is guaranteed that a valid assignment exists for every worker.
You are given two strings skill of length station of length
There are skill[i]. There are station[j].
Each worker must be assigned to an available station such that:
The assigned indices form a strictly increasing sequence
station[p[i]] equals skill[i] for all
The gap between two adjacent assigned stations is
Return the maximum possible value of
Constraints:
skill.length
station.length
skill and station consist of lowercase English letters.
It is guaranteed that a valid assignment exists for every worker.