I am stucked at the problem Shortest subsequence. Can someone kindly explain an optimal algorithm to solve this problem?
Need help to solve this problem from CSES problemset.
I am stucked at the problem Shortest subsequence. Can someone kindly explain an optimal algorithm to solve this problem?