Untitled

user_5668965 avatar
user_5668965
Python
07/20/2024 8:58 AM
111 B
30
Indexable
Never
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