Kth Distinct String in an Array Problem

Kth Distinct String in an Array Problem — ExecCode Easy DSA Practice

Solve the Kth Distinct String in an Array problem on ExecCode. Free online easy DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.

Description A distinct string is a string that is present only once in an array. Given an array of strings arr, and an integer k, return the k^th distinct string present in arr. If there are fewer than k distinct strings, return an empty string "". Note that the strings are cons…

Practice Kth Distinct String in an Array free on ExecCode. Browse more ExecCode DSA problems.