Created
July 20, 2019 18:09
-
-
Save pradeepvarma22/b202ba5cd58b0805ffdc548622b68bef to your computer and use it in GitHub Desktop.
Smart Inteview test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*https://www.hackerrank.com/contests/smart-interviews-bvritn-2021a/challenges/si-smart-string*/ | |
| #include<bits/stdc++.h> | |
| using namespace std; | |
| int main() | |
| { | |
| int i,j; | |
| string a; | |
| cin>>a; | |
| sort(a.begin(),a.end()); | |
| a.erase( unique( a.begin(), a.end() ), a.end() ); | |
| int len = a.length(); | |
| if(len==26) | |
| { | |
| cout<<"Yes"; | |
| } | |
| else | |
| { | |
| cout<<"No"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment