3 ms·
I have been asked similar question in an interview. it is not so trivial, it is NP problem.
by Ainab 16y ago
I have been asked similar question in an interview. it is not so trivial, it is NP problem.
- varjag 16y agoIt is trivial in the sense that you solve it with exhaustive search. It can be stressful to implement during a live interview however.