Untitled
user_5668965
python
2 years ago
111 B
20
Indexable
for _ in range(int(input())):
n = int(input())
s = input()
print("YES" if list(s) == sorted(s) else "NO")Editor is loading...
Leave a Comment
for _ in range(int(input())):
n = int(input())
s = input()
print("YES" if list(s) == sorted(s) else "NO")