Given a vector vec, and a integer K the task is to count the number of elements such that it occurs only once in the vector and with the number Kth times Read more →
Hash
13 postsGiven a string find the character which occurs a minimum number of times. Note: If multiple such characters exist output anyone. Example: Input: S = abbccdd Output: a As frequency of every Read more →
Given an integer array arr[] a non negative integer k, print k-th distinct element in an array. The given array may contain duplicates and the output should print k-th distinct element among Read more →