Mark repeated elements with binary strings.
Unlock detailed company stats for this questionUpgrade
Given an integer array, return two binary strings marking whether each element appears again after its index and whether it appeared before its index. Example: [1,2,3,1,2,4,5] gives [1100000] and [0001100].
Community answers
No answers contributed by the community yet.
Related questions
Count binary string arrangements with no consecutive ones.Related courses

Course

Course
Course
