Longest Subsequence Repeated k Times
Given a string s and an integer k, return the longest subsequence of s such that it is repeated k times. If multiple answers exist, return the lexicographically smallest one. If there is no such subsequence, return an empty string.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)