Given an integer array nums and an integer k, return the most competitive subsequence of nums of size k.
A subsequence a of length k is considered more competitive than another subsequence b of length k if, at the first position where a and b differ, the value in a is strictly smaller than the value in b.
Constraints:
nums.length
nums[i]
k nums.length
Given an integer array nums and an integer k, return the most competitive subsequence of nums of size k.
A subsequence a of length k is considered more competitive than another subsequence b of length k if, at the first position where a and b differ, the value in a is strictly smaller than the value in b.
Constraints:
nums.length
nums[i]
k nums.length