In this task, you are given an input list A comprising of numbers and alphabets. You need to extract and sort the unique alphabets in the list. The alphabets in the input list will only be in lowercase. Return -1 if there is no alphabet in the input list.
One example is below.
Q: ['8129', 'a', '4245', 'y', 'm', 'a']
A: a, m, y
Rationale: Here, the unique alphabets in the list are 'a', 'y', and 'm', hence their sorted order is 'a, m, y'.
Q: ['5441', 'm']
A:
m
In this task, you are given an input list A comprising of numbers and alphabets. You need to extract and sort the unique alphabets in the list. The alphabets in the input list will only be in lowercase. Return -1 if there is no alphabet in the input list.
One example is below.
Q: ['8129', 'a', '4245', 'y', 'm', 'a']
A: a, m, y
Rationale: Here, the unique alphabets in the list are 'a', 'y', and 'm', hence their sorted order is 'a, m, y'.
Q: ['5441', 'm']
A:
user
m
assistant
In this task, you are given an input list A comprising of numbers and alphabets. You need to extract and sort the unique alphabets in the list. The alphabets in the input list will only be in lowercase. Return -1 if there is no alphabet in the input list.
One example is below.
Q: ['8129', 'a', '4245', 'y', 'm', 'a']
A: a, m, y
Rationale: Here, the unique alphabets in the list are 'a', 'y', and 'm', hence their sorted order is 'a, m, y'.
Q: ['5441', 'm']
A:
m