+6

How to solve deja vu in coach

5/9/2020 7:27:09 AM

Bhatesh Khairnar

3 Answers

New Answer

+2

#include <stdio.h> #include <string.h> int main() { char input[801]; int counter=0; fgets(input, 801, stdin); for (int x=0; x<=strlen(input); x+=1) { for (int y=x+1; y<=strlen(input); y+=1) { if (input[x] == input[y]) { counter = 1; break; } } } if (counter == 1) { printf("Deja Vu"); } else { printf("Unique"); } return 0; }

+5

Tell me in c language

+3

In Python I solved s=input('') spl=set(s) if len(s)>len(spl): print('Deja Vu') else: print('Unique')