You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// First Approach - Hashmapping the distinctness of each string with a boolean and iterating entries over getting the kth distinct string. (71ms - Beats 41.67%)
function kthDistinct(arr: string[], k: number): string {
const isDistinct: Map<string, boolean> = new Map();