Kth Distinct String in an Array - Leetcode 2053 - Java

preview_player
Показать описание
Problem Description
Program to find kth distinct string from the array of strings.

More details:
Given an array of strings arr, and an integer k, return the kth distinct string present in arr. If there are fewer than k distinct strings, return an empty string "".

Рекомендации по теме
welcome to shbcf.ru