Programming/Etc
2021. 12. 3.
Hackerrank / ginorts
링크 : https://www.hackerrank.com/contests/pythonist3/challenges/ginorts/problem 소문자, 대문자, 홀수, 짝수 순으로 재배치되어 나오는 문제이다. Sample Input Sorting1234 Sample Output ginortS1324 def solve(s): char = list(s) alpha = 'abcdefghijklmnopqrstuvwxyz' alpha_b = list(alpha.upper()) alpha_s = list(alpha) big = [] small = [] num_0 = [] num_1 = [] for c in char: if c in ['0','2','4','6','8']: num_0.append(ord(c)) elif..