MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / dejavu

Function dejavu

Misc/Deja_vu/solution1.py:7–11  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

5"""
6
7def dejavu(string):
8 if len(string) == len(set(string)): #set() removes duplicates from a string. So if set(string) is same as actual string, then it is unique
9 return "Unique"
10 elif len(string) > len(set(string)): #Else, it contains duplicates and hence not unique
11 return "DeJa Vu"
12
13str = input() # getting input
14print(dejavu(str))

Callers 1

solution1.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected