1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

feat(solutions): add `is-prime-number/cs/function

`
This commit is contained in:
Divlo
2021-09-10 22:37:50 +02:00
parent a1f20afb36
commit 2e15a21206
4 changed files with 56 additions and 4 deletions

View File

@ -6,7 +6,7 @@ Created by [@Divlo](https://github.com/Divlo) on 15 November 2020.
Write a function that takes a string input, and returns the first character that is not repeated anywhere in the string.
For example, if given the input `'stress'`, the function should return `'t'`, since the letter _t_ only occurs once in the string, and occurs first in the string.
For example, if given the input `'stress'`, the function should return `'t'`, since the letter `'t'` only occurs once in the string, and occurs first in the string.
If a string contains all repeating characters, it should return an empty string (`""`).