Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphanumeric String Sort #3

Open
ninjasort opened this issue Mar 6, 2024 · 0 comments
Open

Alphanumeric String Sort #3

ninjasort opened this issue Mar 6, 2024 · 0 comments

Comments

@ninjasort
Copy link
Owner

https://github.com/mre/the-coding-interview/tree/master/problems/alphanumeric-string-sort

Alphanumeric String Sort

Given a string containing alphanumeric ASCII characters only ([A-Za-z0-9]),
sort and print the string in the following manner:

  1. all sorted lowercase letters are ahead of uppercase letters,
  2. all sorted uppercase letters are ahead of digits, and
  3. all sorted even digits are ahead of sorted odd digits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant