Closed 072arushi closed 2 years ago
Hello @072arushi, thanks for creating your first issue at LearnCPP, hope you followed the guidelines.
/assign
This issue has been assigned to 072arushi! It will become unassigned if it is not closed within 12 days. A maintainer can also add the pinned label to prevent it from being unassigned.
Description
Given string str of size N containing all possible characters including integers. Print Kth distinct character from the starting of the given string. If K is more than a number of distinct characters, print -1. Note: The uppercase and lowercase letters are considered different.
Examples: Input: str = “prophet1999”, K = 4 Output: h
Domain
CPP
Type of Contribution
Addition
Code of Conduct